From the course: AWS for Developers: S3

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Creating a bucket

Creating a bucket

- [Instructor] Now we can start digging in to the Java SDK. I will remind you of a couple things. First, there's usually more than one way to do things. I'm just showing you a snapshot of the SDK, not a full picture. Secondly, this is not production code. It's demo code. I'm making compromises for brevity with the Java code since this isn't a course on Java. So let's jump into our application here. We're going to add a whole bunch of variables much like we did with the Python example. So private static final Logger LOGGER equals LoggerFactory.getLogger. Import the logger. Now private static final string AWS_ACCESS_KEY equals AWS_ACCESS_KEY_ID. Now just like with Python, Java will look in your local directory, your local AWS to see if you have credentials. But because we at least want to show some of the way you will do this in a production system, we don't want to rely on the file system. So we're going to look them…

Contents