Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support IAM instance profiles #39

Open
reedloden opened this issue Mar 23, 2017 · 3 comments
Open

Support IAM instance profiles #39

reedloden opened this issue Mar 23, 2017 · 3 comments

Comments

@reedloden
Copy link

Instead of requiring an explicit access key and secret key, add support for IAM instance profiles via the EC2 metadata service to allow dynamically getting temporary credentials as needed.

http://aws.amazon.com/about-aws/whats-new/2012/06/11/Announcing-IAM-Roles-for-EC2-instances/
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html#instance-metadata-security-credentials

Examples of other PHP projects implementing this:

@gwynnarth
Copy link

+1 I would love to see that implemented since requiring passing IAM secrets complicate our setup significantly.

@IvoJager
Copy link

IvoJager commented Sep 1, 2020

If anyone finds it useful, this is slightly modified version of 0.92 that takes the temporary token and sends it along with the headers;

IvoJager@036f33b

It works for our purposes - no guarantees it will for your setups (though I can't see any reason it won't...).

@lgrassini
Copy link

+1. We should never have hardcode credentials in the codebase. Is there any status about implementing this into the library? @daniel-zahariev Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants