aws-samples / aws-serverless-workshop-innovator-island

Welcome to the Innovator Island serverless workshop! This repo contains all the instructions and code you need to complete the workshop.
MIT No Attribution
564 stars 228 forks source link

Add Cloudfront to restrict access to FinalBucket and bump nodejs to 16.x #90

Closed machafer closed 1 year ago

machafer commented 1 year ago

Issue #, if available:

Description of changes: Starting in April 2023 Amazon S3 will change the default security configuration for all new S3 buckets. For new buckets created after this date, S3 Block Public Access will be enabled, and S3 access control lists (ACLs) will be disabled. More information can be found here.

Innovator Island frontend uses the https address from the object in S3 to load the photos and this new Amazon S3 feature is going to break the workshop, since it depends on a public bucket. To workaround this, we're adding a Cloudfront to restrict access to FinalBucket.

This PR also updates nodejs version to 16.x.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.