Giter Site home page Giter Site logo

aws-infra's Introduction

사전 준비 사항

참조 문서

https://github.com/awslabs/ecs-refarch-cloudformation#fork-destination-box

aws cli 설치

https://docs.aws.amazon.com/ko_kr/cli/latest/userguide/cli-chap-install.html

ssl 인증서 요청

aws acm request-certificate --domain-name "*.domain.com" --profile [profile]

알림 수신자 설정

# topic 생성
aws sns create-topic --name developers --profile [profile]

# subscribe 등록
aws sns subscribe --topic-arn [topic-arn] --protocol email --notification-endpoint [email] --profile [profile]

master.yaml 파일 설정

  1. master.yaml 파일을 ./masters/ 디렉토리로 복사및 이름 변경

  2. *** 표기가 있는 부분을 설정

  3. s3 디렉토리에 업로드 (선택사항)

  4. infra 내부 파일 수정시 별도 디렉토리 생성후 업로드, master 파일 내부 경로도 수정.

auto scaling 은 따로 설정해 준다.

변경 사항이나 예외 사항이 많기 때문에 자동화 하지 않았다.

auto scaling 생성시 launch configration user data

ec2-user 권한으로 cd /home/ec2-user/aws-infra/;git pull 명령어 실행

#!/bin/bash

su - ec2-user -c "cd /home/ec2-user/aws-infra/;git pull"

stress test

sudo amazon-linux-extras install epel -y
sudo yum install stress -y

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.