Making a bucket public means anyone with the URL can access the data. Only use this approach for non-sensitive data that you intend to share publicly.
Prerequisites
Before configuring your bucket, ensure you have the following:- An AWS account with permissions to modify S3 bucket settings
- An existing S3 bucket containing the data you want to use
- Visual Layer cloud account
Step 1: Disable block public access settings
AWS blocks public access to S3 buckets by default. You need to disable this protection before applying a public bucket policy.- Log into the AWS Management Console.
- Navigate to the S3 service.
- Select the bucket you want to make public.
- Select the Permissions tab.
- In the Block public access (bucket settings) section, select Edit.
- Uncheck Block all public access.
- Select Save changes.
-
Confirm by typing
confirmin the confirmation dialog.
Step 2: Add the public bucket policy
After disabling the block public access settings, you need to add a bucket policy that grants public read access.- In the Permissions tab of your bucket, scroll down to Bucket policy.
- Select Edit.
-
Add the following policy, replacing
<bucket_name>with your actual bucket name:
- Select Save changes. Your bucket is now configured for public access.
Step 3: Create a dataset in Visual Layer
Once your bucket is publicly accessible, you can create a dataset in Visual Layer using the bucket URL.- Create a new dataset in Visual Layer.
- Select Public S3 Bucket as the data source.
-
Enter your S3 bucket URL in the format:
s3://your-bucket-nameorhttps://your-bucket-name.s3.amazonaws.com. Visual Layer will import the data from your public bucket.