0

It is the use case: My aws account is using aws identity with MFA enabled. I have some long running jobs I wish to be able to run on an ec2 instance.

Is it possible to generate some kind of token using aws sts such that I can use in the ec2 instance to grant my job scripts access to some aws resources?

Anthony Kong
  • 3,288
  • 11
  • 57
  • 96

1 Answers1

1

EC2 instances already fetch short-term credentials from STS periodically. You just need to create an IAM role, and assign this role to your instance as an instance profile.

Vikyol
  • 161
  • 4