In certain workflows, AWS users may want to interact with S3 using credentials inherited from an IAM role as exposed at runtime by the following environment variables:
AWS_ROLE_ARN
AWS_WEB_IDENTITY_TOKEN_FILE
Unfortunately, credentials generated via this method are strictly temporary. Fortunately, there is a botocore.credentials.RefreshableCredentials class that provides a convenient way to automatically regenerate credentials when needed.
In certain workflows, AWS users may want to interact with S3 using credentials inherited from an IAM role as exposed at runtime by the following environment variables:
Unfortunately, credentials generated via this method are strictly temporary. Fortunately, there is a
botocore.credentials.RefreshableCredentials
class that provides a convenient way to automatically regenerate credentials when needed.Helpful resources