Open
Conversation
…nter/task-2 added s3 bucket and cloudfront distribution
…t-redux-cloudfront into task-2-test
…nter/task2-cf-issue CloudFront issue with S3 buckets on different regions
…ript-errors Update ts version
…tack feat: Update application dependencies
…/remove-serverless Remove Serverless
Author
|
Creating a new pull request 1.5 days after deadline. Finished all task that I was late for. |
The links were not added to readmi.md and the site on the cloudfront does not display the nodejs-aws-shop-react application, but only an HTML page with text. PR created in rolling-scopes-school/nodejs-aws-fe, but needed creating PR to rolling-scopes-school/nodejs-aws-shop-react. See example: rolling-scopes-school#51 There is also no CDK for automatic deployment on S3 Bucket & CloudFront in project (additional/optional tasks - 30 scores). |
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.
CloudFront website - d1iidjyfcnnenw.cloudfront.net
S3-website - https://js-cc-cloudfront-s3-rs-school.s3.amazonaws.com/index.html
Task 2. What was done
Task 2.1
Manual Deployment
In the AWS Console create and configure an S3 bucket where you will host your app (follow instructions in training materials).
Build and manually upload the MyShop! app to the created S3 bucket. Check if the app is available through the Internet over http://{your-bucket-name}.s3-website-{aws-region}.amazonaws.com .
Create a CloudFront distribution for your app as it was described in training materials. Check your S3 bucket policy changes. Check if the app is available through the Internet over given CloudFront URL.
Make some minor but visible changes in the app, build and upload them to your bucket, and create CloudFront distribution invalidation.
Task 2.2
Automated Deployment
Add and configure S3 bucket creation and website deployment using AWS CDK. Add necessary npm script(s) to build and deploy your app from your machine in an automated way. Check if everything works correctly for you.
NOTE: After uploading an application's build to the S3 bucket you need to manually create a CloudFront invalidation.
Destroy the created AWS infrastructure (S3 bucket and CloudFront distribution) from the previous part and steps. Make sure nothing is left.
Add and configure CloudFront Distribution and Invalidation using AWS CDK. Add necessary npm script(s) to build, upload to your S3 bucket, and invalidate CloudFront cache from your machine in an automated way. Check if everything works fine and all changes appear on the Web.
NOTE: Now that you have this plugin you don’t need to manually create CloudFront invalidations any more.
Task 2.3