Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Latest commit

 

History

History
15 lines (10 loc) · 658 Bytes

12-make-the-contents-of-an-s3-bucket-deployed-with-cdk-public.md

File metadata and controls

15 lines (10 loc) · 658 Bytes

Make the contents of an S3 bucket deployed with CDK public

📹 Video

By default, an s3 bucket is secure and publicly inaccessible. To fix that, we'll have to add a single property to our LogoBucket.

Closed Buckets Illustration

const logoBucket = new s3.Bucket(this, "LogoBucket", {
    publicReadAccess: true
});

Once deployed, our s3 links will be available to everyone.