Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2894: Use IAM role to extract security-credentials for EC2 instance r=bronzdoc a=apakulov-stripe # Description: Accidentally used the wrong metadata endpoint that is reserved for the internal use. If we want to use proper EC2 instance-profile credentials we need to extract the role-name first by calling `iam/info` and use it to construct `iam/security-credentials/role-name`. If `iam_role` is not attached to the instance it will raise an exception `ec2_metadata_request` since `iam/info` will return 404. See metadata documentation for more details: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html Is there a chance we can have a new release for this? (I've been waiting for `3.0.5`/`3.0.6`, but unfortunately notice this issue just now). Thank you! I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md). Co-authored-by: Alexander Pakulov <apakulov@stripe.com>
- Loading branch information