Skip to content

Latest commit

 

History

History
 
 

sdk

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

AWS SDK for Go V2 examples

Purpose

These examples show ways to work with Go-specific aspects of the AWS SDK for Go V2.

The AWS SDK for Go provides easy-to-use APIs and utilities developers can use to quickly integrate Go applications with AWS services like Amazon S3 and Amazon EC2.

AWS Usage Scenario Examples

config.go: Loading configurations and using STS for roles.

This example demonstrates

  • Loading the default configuration
  • Assuming a role using STS

To run this example, run

go run config.go

Prerequisites

You must have an AWS account, and have your default credentials and AWS Region configured as described in Configuring the AWS SDK for Go in the AWS SDK for Go Developer Guide.

Important

  • We recommend that you grant this code least privilege, or at most the minimum permissions required to perform the task. For more information, see Grant Least Privilege in the AWS Identity and Access Management User Guide.
  • This code has not been tested in all AWS Regions. Some AWS services are available only in specific Regions.
  • Running this code might result in charges to your AWS account.

License

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0