ex-aws / ex_aws_sts

13 stars 31 forks source link

InstanceRole credentials used in an AssumeRole call? #17

Closed justin-yen closed 4 years ago

justin-yen commented 4 years ago

Is it possible to use instance role credentials to assume another role?

For example, if the service is being run on an ec2 instance with InstanceRole attached, can a role ARN be specified in the aws cli config file and used in the assume role call that ExAws.STS performs? The InstanceRole would have AssumeRole permissions for the role trying to be assumed.