This is CloudFormation Template for the AWS infrastructure of ECS Fargate. You can deploy your own Service with Serverless Container Orchestration.
- Route53
- CloudFront
- VPC
- Public Subnet
- Application Load Balancer
- ECS Fargate
- root.yml ... Root Stack
- templates/ ... Stack of S3Bucket for yaml templates
- infrastructure/ ... Stacks of network settings
- ecs-fargate/ ... Stacks of ECS Fargate
.env
APP_NAME=sample-api
TEMPLATE_BUCKET=sample-templates
VPC_CIDR=192.168.0.0/16
PUBLIC_SUBNET_A_CIDR=192.168.0.0/20
PUBLIC_SUBNET_C_CIDR=192.168.16.0/20
PRIVATE_SUBNET_A_CIDR=192.168.32.0/20
PRIVATE_SUBNET_C_CIDR=192.168.48.0/20
HEADER_KEY=sample
DOMAIN_NAME=sample.com
SUB_DOMAIN=api
CFSSLCertificateId=xxxxx-yyyy-zzzz
$ aws configure
$ sh template
ENV ... prd | something
$ sh deploy ENV
enjoy serverless life!