Simple Blog on Simple Container.
- docker
- clone this repository
$ git clone https://github.com/Anorlondo448/blog_on_container
- start container
$ cd blog_on_container
$ docker-compose up
- Download the ECS CLI binary.
$ sudo curl -o /usr/local/bin/ecs-cli https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-linux-amd64-latest
- Apply execute permissions to the binary.
$ sudo chmod +x /usr/local/bin/ecs-cli
$ which ecs-cli
- set credential - use direnv
- check version
$ ecs-cli --version
- make Key Pair on EC2 Dashboard
- use direnv
$ direnv edit .
export AWS_ACCESS_KEY_ID=[Access Key]
export AWS_SECRET_ACCESS_KEY=[Secret Key]
export AWS_DEFAULT_REGION=[Availability Zone]
export ECS_CLUSTER=[Cluster Name]
- [Cluster Name] Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. (Creating a Cluster)
- create ECS cluster
$ ecs-cli up --keypair [Key Pair Name] --capability-iam --size [Instance Count] --instance-type [Instance Type]