Repository navigation
feat: implement frontend stack with S3 and CloudFront for Vite/React … - #3
Merged
Merged
Conversation
There was a problem hiding this comment.
Hi @ezekielelvis! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a full continuous deployment workflow for the project, adds infrastructure to host and serve the frontend as a static site on AWS, and updates documentation to reflect these changes. The main improvements are the addition of a GitHub Actions deployment pipeline, a new CDK stack for frontend hosting (S3 + CloudFront), and documentation updates to describe the deployment process and infrastructure.
Continuous Deployment and Infrastructure Updates:
Added a new GitHub Actions workflow (
.github/workflows/deploy.yml) that automatically deploys the infrastructure and frontend to AWS after successful CI runs onmain. The workflow provisions all stacks, builds the frontend with the correct API URL, uploads it to S3, and invalidates the CloudFront cache.Introduced a new CDK stack (
infrastructure/lib/stacks/frontend-stack.ts) that provisions a private S3 bucket and CloudFront distribution for secure, static hosting of the Vite/React SPA. This stack outputs the necessary deployment information for the workflow.Documentation Updates:
Updated
README.mdto document the new continuous deployment process, the structure and deployment of the frontend, and the addition of a seventh stack. This includes a new section describing how the deployment workflow operates and how the frontend is hosted. [1] [2] [3]Updated
infrastructure/README.mdto include the newFrontendstack, increasing the stack count from six to seven, and describing its purpose and deployment method. [1] [2]…SPA deployment