- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

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.

Lab 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.
About the author
Real skill practice before real-world application
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.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.