To install the project dependencies, simply run the following command in your terminal:
go mod init aws_s3go get github.com/aws/aws-sdk-go-v2/service/s3
The following commands show how to retrieve the standard set of SDK modules to use in your application.
go get github.com/aws/aws-sdk-go-v2go get github.com/aws/aws-sdk-go-v2/config
2. Setup the Environment
We will be setting up two environment variables, ACCESS_KEY and SECRET_KEY, which are required to access the S3 Cloud Storage service. Assign the values of these variables to the values of your credential that you received.