Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task 2. Serve SPA in AWS S3 and Cloudfront Services #3

Open
Guria opened this issue Sep 30, 2022 · 2 comments · Fixed by #2, #1 or #4
Open

Task 2. Serve SPA in AWS S3 and Cloudfront Services #3

Guria opened this issue Sep 30, 2022 · 2 comments · Fixed by #2, #1 or #4

Comments

@Guria
Copy link
Owner

Guria commented Sep 30, 2022

Task 2 assignment

Note for reviewers

I apologize that I technically doesn't made exactly what was stated in task assignment:

  • I didn't not used suggested plugins. You can find my motivation in Task 2.2 PR comments.
  • I use this issue instead of PR to collect everything about this task and all referenced PR are merged already

Hope that it wouldn't be a major reason for you to lower your evaluation.
You still can comment in linked PRs and provide your final evaluation in comments to this issue.

Task 2 Artifacts

Task 2.1 (Pull Request #1) Manual configuration and deployment

Contains repo cleanup, dependencies upgrade and results of manual deployment

Extra effort:

  • upgraded vite setup
  • added manual code split chunks
  • added initial react-query hydration for static build to make result not looking so empty

Note: to install locally must use npm i --legacy-peer-deps since deps has broken peer-deps definitiions

Task 2.2 (Pull Request #2) CLI configuration and deployment

contains serverless implemetation and results of deployment from command line
Distribution url: https://d117vzcvm45m9s.cloudfront.net (cleaned up, not available anymore)

Extra effort:

  • handcrafted serverless.yml resource section
  • handpicked plugins that better solve goals to sync s3 and makes cloudfront invalidation
  • custom plugin to output deployment url in output after deploy

Task 2.extra (Pull Request #4) Automated configuration and deployment

adds fully automated deployment using github actions workflows that run on main branch pushes.
Example run: https://github.com/Guria/aws-js-practitioner/actions/runs/3160716479
Link to deployed app in logs: https://github.com/Guria/aws-js-practitioner/actions/runs/3160716479/jobs/5145483384#step:11:19

Task 2.extra.2 (Pull Request #5) Migrate away from outdated s3 policy, setup custom domain

migrating from OAI to OAC
configures custom domain in hosted zone

Links to deployment

Deployments links removed since its outdated and there are newer tasks implemented.

@Guria Guria changed the title Task 2.3 Collect task related artifacts Task 2. Serve SPA. Manual, CLI and pipeline based configuration and deployment. Oct 1, 2022
@Guria Guria changed the title Task 2. Serve SPA. Manual, CLI and pipeline based configuration and deployment. Task 2. Serve SPA in AWS S3 and Cloudfront Services Oct 1, 2022
@DianaKogut
Copy link

5/5

@Dmtreaqq
Copy link

Dmtreaqq commented Oct 5, 2022

Great job! Score: 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment