Predictive Hacks

Make an S3 Bucket using AWS CLI and Block Public Access

We can easily make an S3 bucket using the AWS CLI by running the command:

aws s3 mb s3://mybucket

where mb means “make bucket”. What you must know is that the new bucket does not have blocked public access! In order to block public access you need to run the following command:

aws s3api put-public-access-block \
    --bucket my-bucket \
    --public-access-block-configuration "BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true"

Reference: put-public-access-block

Share This Post

Share on facebook
Share on linkedin
Share on twitter
Share on email

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore


Image Captioning with HuggingFace

Image captioning with AI is a fascinating application of artificial intelligence (AI) that involves generating textual descriptions for images automatically.


Intro to Chatbots with HuggingFace

In this tutorial, we will show you how to use the Transformers library from HuggingFace to build chatbot pipelines. Let’s