Code for AWS infrastructure setup:
Sequence of running stacks:
-
awsms-poc-vpc.yml - To create VPC, Subnets, NAT Gateways, Internet Gateway, Route Tables, Routes, VPC Endpoints
-
awsms-poc-ecs-cluster.yml - To create ECS Cluster and Roles.
-
awsms-poc-alb.yml - To create ALB, Target Group, Security group for Load Balancer, Listener
-
awsms-poc-ecs-service.yml - To create ECS service, Tasks, Task Defination, Log Group
-
awsms-poc-code-pipeline.yml - To create codepipeline - after this if build got failed then we need to edit codebuild stage and need to login to Github Repo