AWS CodePipeline and CodeBuild Stack
CloudFormation full CI/CD pipeline from GitHub via CodeStar connection, CodeBuild Docker build, ECS deployment. Build spec and IAM roles included.
AWS-Native CI/CD Pipeline via CloudFormation
A complete CloudFormation stack that provisions a production-ready CI/CD pipeline using AWS CodePipeline, CodeBuild, and a CodeStar GitHub connection — including all IAM roles, build specs, and ECS deployment integration.
What's Included
- CodePipeline sourcing from GitHub via CodeStar connection (no OAuth tokens needed)
- CodeBuild project with Docker layer caching and artifact storage in S3
- ECS rolling deployment action with configurable service and cluster
- All IAM roles and policies with least-privilege permissions
- CloudWatch log groups and pipeline event notifications via SNS
What You Get
pipeline.yaml— CloudFormation template deploying the full stackbuildspec.yml— CodeBuild build spec for Docker build and pushparameters.json— example parameter file for deploying to different environmentsiam/— extracted IAM policy documents for reviewREADME.md— deploy guide, GitHub connection setup, and customization notes
Requirements
- AWS account with CloudFormation deploy permissions
- GitHub repository (CodeStar connection setup takes ~2 minutes)
- Existing ECS cluster and service, and ECR repository