Skip to content

Latest commit

 

History

History
 
 

AssumeRole

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

AssumeRolev2.go

This example gets temporary security credentials to access resources.

go run AssumeRolev2.go -r ROLE-ARN -s SESSION-NAME

  • ROLE-ARN is the ARN of the role to assume.
  • SESSION-NAME is the name of the assumed role session.

The unit test accepts similar values in config.json.