ushios/awsconfig Get aws config from IAMRole or credentials file. Installation $ go get github.com/ushios/awsconfig Documentation Samples Get s3 client import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" ) s3client := s3.New(session.New(awsconfig.Config(nil)))