-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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_RS_School #346
base: main
Are you sure you want to change the base?
TASK_2_RS_School #346
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
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). |
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