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_RS_School #346

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open

TASK_2_RS_School #346

wants to merge 28 commits into from

Conversation

Paukste1
Copy link

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

  1. In the AWS Console create and configure an S3 bucket where you will host your app (follow instructions in training materials).

  2. 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 .

  3. 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.

  4. 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

  5. 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.

  6. Destroy the created AWS infrastructure (S3 bucket and CloudFront distribution) from the previous part and steps. Make sure nothing is left.

  7. 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

  1. Store the links to CloudFront URL and S3-website in README.md file.
  2. Commit all your work to separate branch (e.g. task-2 from the latest main) in your own repository.
  3. Create a pull request to the main branch.
  4. Submit link to the pull request to Crosscheck page in RS App.

Ilya-Valasiuk and others added 28 commits March 16, 2021 11:53
…nter/task-2

added s3 bucket and cloudfront distribution
…nter/task2-cf-issue

CloudFront issue with S3 buckets on different regions
…tack

feat: Update application dependencies
@Paukste1 Paukste1 closed this Nov 14, 2023
@Paukste1 Paukste1 reopened this Nov 14, 2023
@Paukste1
Copy link
Author

Creating a new pull request 1.5 days after deadline. Finished all task that I was late for.

@jhdvp
Copy link

jhdvp commented Nov 14, 2023

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

  1. In the AWS Console create and configure an S3 bucket where you will host your app (follow instructions in training materials).
  2. 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 .
  3. 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.
  4. 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
  5. 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.
  6. Destroy the created AWS infrastructure (S3 bucket and CloudFront distribution) from the previous part and steps. Make sure nothing is left.
  7. 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

  1. Store the links to CloudFront URL and S3-website in README.md file.
  2. Commit all your work to separate branch (e.g. task-2 from the latest main) in your own repository.
  3. Create a pull request to the main branch.
  4. Submit link to the pull request to Crosscheck page in RS App.

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants