In the previous chapter, we deployed our first Lambda function via the AWS CLI. As you remember, we used the locally stored JAR file in the command line, and we saw that having the JAR file on our development machine works for such a simple scenario. However, when we want to deploy our Lambda functions via CloudFormation, we have to upload the very same JAR file to an S3 storage. S3 is the oldest and maybe the most famous AWS offering and provides a scalable and durable storage area for developers. In S3, you can store any type of files and pay only for the storage you actually use. In this chapter, we will introduce S3 to upload our artifacts, but in the following chapters, we will also use it to store uploaded files by users, such as profile pictures.
As a first step toward automated deployment, we will use the AWS Gradle plugin built by Classmethod...