AWS services
Now, it's time to learn how to utilize the power of Go to interact with AWS and build cloud native applications. In this section, we'll start a practical dive into some AWS services needed to build modern production grade cloud applications.
AWS SDK for Go
As mentioned earlier, the AWS SDK for Go is a collection of libraries that enables Go to expose the power of AWS. In order to utilize the SDK, there are some key concepts we need to cover first.
The first step we will need to do is to install the AWS SDK for Go; this is done by running the following command:
go get -u github.com/aws/aws-sdk-go/...
Like any other Go package, this command will deploy the AWS SDK libraries to our development machine.
Configuring the AWS region
The second step is to specify the AWS region; this helps identify where to send the SDK requests when making calls. There is no default region for the SDK, which is why we must specify one. There are two ways to do that:
- Assigning the region value to an environmental...