From the course: AWS for Developers: S3

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Bucket security

Bucket security - Amazon Web Services (AWS) Tutorial

From the course: AWS for Developers: S3

Start my 1-month free trial

Bucket security

- [Instructor] There's a lot of variation of security options when dealing with S3 buckets, and they can all be configured to the STK. We're going to leverage the STK to block public access, like we did in the console, and we're going to use this as an example of using the STK for security purposes. There are obviously no way that I can show you all of them but this is a good example. So let's go back into our Python file. And we will create a new function called prevent public access. And we're simply going to have a bucket in order to do this work. And we will call on S3 meta client once again. And we're going to use a method called put public access block. We will send a bucket in the keyword arguments. We'll pass that our bucket. Now we need to build a public access block configuration which will equal a dictionary. Let's bring this to the next line here real quick so you can see me type at all. And in this…

Contents