https://github.com/abiydv/aws-cf-ecs
Clodformation template to create a AWS ECS cluster
https://github.com/abiydv/aws-cf-ecs
aws aws-cloudformation aws-ecs aws-ecs-cluster cloudformation containers ecs ecs-cluster ecs-service ecs-task fargate
Last synced: 16 days ago
JSON representation
Clodformation template to create a AWS ECS cluster
- Host: GitHub
- URL: https://github.com/abiydv/aws-cf-ecs
- Owner: abiydv
- License: apache-2.0
- Created: 2019-02-02T07:29:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-04T11:59:56.000Z (about 7 years ago)
- Last Synced: 2025-02-28T11:04:19.309Z (over 1 year ago)
- Topics: aws, aws-cloudformation, aws-ecs, aws-ecs-cluster, cloudformation, containers, ecs, ecs-cluster, ecs-service, ecs-task, fargate
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS ECS Fargate Cluster
[](https://www.codefactor.io/repository/github/abiydv/aws-cf-ecs)








Use this template to create a ECS (Fargate backed) cluster with load balancer, IAM role, autoscaling policies etc.
## Prerequisites
Create the VPC using [vpc-stack]() template. This template reads the exported values from the vpc-stack.
It launches the load balancer in public subnets and ECS Containers in the private subnets.
## Architecture
A simplified view of the architecture is as follows -

## How to use
Checkout the repository and execute from cli. Remember to select the correct profile
```
aws cloudformation validate-template --template-body file://ecs-stack.yaml \
--profile aws-dev-account --region us-east-1
```
This should display the parameters - validating the template syntax is fine. Next, create the stack
```
aws cloudformation create-stack --stack-name ecs-stack --template-body file://ecs-stack.yaml \
--profile aws-dev-account --region us-east-1
```
Or, copy the template and create the stack from Cloudformation console.
## Alternative
You could also create the same set of resources using Terraform, if you prefer. Take a look at my [Terraform repo](https://github.com/abiydv/terraform/tree/master/ecs)
## Contact
Drop me a note or open an issue if something doesn't work out.
Cheers! :thumbsup: