- Lab
- A Cloud Guru
Build a Java Application Using Gradle and the AWS SDK
Hey, Gurus! Welcome to the lab. In this lab, you are going to use Gradle and the AWS SDK to develop a Java project responsible for creating an S3 bucket in AWS. Let's get started.
Path Info
Table of Contents
-
Challenge
Create the Gradle Java Project
In your terminal:
- Configure the AWS CLI.
- Install SDKMAN using the curl command provided.
- Install Java.
- Install Gradle.
- Create the
guru_aws
project directory. - Move into the
guru_aws
directory. - Initialize the
guru_aws
directory to build the scaffolding for the project.
-
Challenge
Modify the Java Application
In your terminal:
- Move the files found in the
gradle_lab/AWS
directory to theguru_aws
directory. - Add the
src
directory to your build. - Modify the build file and add the AWS SDK dependencies and the project name to it, then add the project name to the
CreateBucket.java
file.
- Move the files found in the
-
Challenge
Create the S3 Bucket
In your terminal:
- Build your application.
- Run your application to create the S3 bucket in AWS.
- Confirm that the bucket has been created.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.