Skip to content

Instantly share code, notes, and snippets.

@chris
Last active August 7, 2020 22:05
Show Gist options
  • Save chris/a8c3a9a52391d5bbe991f677daffc993 to your computer and use it in GitHub Desktop.
Save chris/a8c3a9a52391d5bbe991f677daffc993 to your computer and use it in GitHub Desktop.
Go example for configuring AWS SDK with a role based profile
sess := session.Must(session.NewSessionWithOptions(session.Options{
Profile: "mycompany_somerole_devaccount",
SharedConfigState: session.SharedConfigEnable,
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment