Hey everyone! π
I've put together a complete end-to-end CI/CD setup using:
- β AWS CodePipeline
- β AWS CodeBuild
- β S3 for hosting a static website
- β Separate unit testing stage before build
If you're looking to test, build, and deploy your web app β automatically β using only AWS services, youβll love this setup.
β What This Project Covers
π Step-by-step setup for
- Running unit tests with a dedicated unit-test CodeBuild stage
- Building your app (React, Angular, Vue, etc.)
- Deploying the built files to an S3 bucket (static website hosting)
- Automating it all with AWS CodePipeline
π¬ Unit Testing Before Build
Iβve added a separate CodeBuild project that:
- Runs your test framework
- Fails early if tests don't pass β
- Prevents broken code from moving to build or deploy stages
βοΈ Final Build & Deployment
Once tests pass, a second CodeBuild stage:
- Runs build
- Uploads the output (like dist/ or build/) to S3
- S3 serves your static website via public endpoint or CloudFront
π GitHub Repo (Step-by-Step Instructions):
π§ Who Should Try This?
- Frontend developers deploying static apps
- DevOps engineers automating CI/CD pipelines
- Anyone exploring AWS CodeBuild, CodePipeline & S3!
π οΈ Tools Used
- AWS CodePipeline
- AWS CodeBuild
- AWS S3
- GitHub as source
π¬ Feel free to clone the repo, try it out, and ask me anything! Let's build the right way β with testing, automation, and zero manual deploys. π
Top comments (0)
Some comments may only be visible to logged-in visitors. Sign in to view all comments.