Deployment Preview with AWS CloudFront

Introduction Deploy Previews allow you and your team to experience changes to any part of your site without having to publish them to production. With a deploy previews feature you and your teammates can see the changes of every pull request you make without merging it, this will reduce the burden of rolling back the environment when bugs happen as you can review the changes before. In this tutorial, you’ll learn about creating a CI pipeline with CodeBuild that gets triggered on every pull request creation or update, for every build we host react build folder on an S3 bucket and serve it with Cloudfront, finally after merging the pull request, we delete the build folder from S3....

January 10, 2023 · 17 min · 3504 words · Me