Cloudformation template to build and deploy your containerized application to ecs fargate, and configure the CI/CD process using AWS pipeline. This template is fully implemented to deploy your app setup your CI/CD without any other action.
- VPC with two subnets, one private and one public.
- ECS Cluster.
- ECR to host your build image.
- Fraget service and task.
- Loadbalancer.
- SSL certificate for your domain.
- Code Pipeline.
- Retrive the last update from your code on GitHub.
- Build the application using the Dockerfile that conatin in your app.
- Deploy the build image to your ECS cluster.
The ARN of your Github repo connection.
The name of your repository.
The name of your branch that you want to deploy it.
The name of the hosted zone in AWS that you are going to use it to create a Domain name for your app.
The domain name that you want to connect your app with it.
Environment variable Bucket Location, Must be the ARN of the S3 bucket. we will store the env variable in S3.
Name of the Environment variable file in the S3 Bucket.
The port of your app.
The S3 bucket from which to fetch the templates used by this stack.
- Upload these files to AWS S3 bucket.
- Go to CloudFormation > Create stack > Template is ready > Template source > S3 URL > https://[S3_Bucket_URL]/aws-autostart-pipeline.yaml
- Set Stack name and the parameters.
- check
I acknowledge that AWS CloudFormation might create IAM resources with custom names
, andI acknowledge that AWS CloudFormation might require the following capability: CAPABILITY_AUTO_EXPAND
- Create stack.
or, you can use it with gitub action.