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.

Creating a bucket

Creating a bucket - Amazon Web Services (AWS) Tutorial

From the course: AWS for Developers: S3

Start my 1-month free trial

Creating a bucket

- [Instructor] We are now going to walk through a way to create a bucket in Python. I want to note early, and I may do so often, that there is usually more than one way to do this work. I am showing you a snapshot, an example, not a complete picture. I also want to reinforce that this isn't a course on Python. I'm not writing production code. I am writing example code to show you the SDK. There are many compromises I am making for the benefit of brevity. But let's go ahead and jump in. So, I want you to open up your Py S3 file, and we're going to add a few things. One thing that I do want to do is sort of make this production-like, and that is that I'm going to bring in through the environment the actual AWS credentials. Now, if we were doing this just on our machine always, the Bono3 library will look at the credentials file that we've set up for the CLI. But I don't want to leverage that. So we'll go ahead and add in a…

Contents