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

Authenticating using IAM role when running inside EC2 instance #19

Open
hugeps opened this issue Oct 26, 2021 · 1 comment
Open

Authenticating using IAM role when running inside EC2 instance #19

hugeps opened this issue Oct 26, 2021 · 1 comment

Comments

@hugeps
Copy link

hugeps commented Oct 26, 2021

Guys,

Is it possible to use this library so that instead of providing keys to authenticate to SM SDK you could instead utilise the IAM roles assigned to an executing EC2 instance or a container in ECS/EKS context?

As described here I think:
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials_assume_role.html

@swilla
Copy link
Member

swilla commented Oct 28, 2021

The package does not specifically pass in credentials, so it in theory should work. Based on the AWS documentation, assumed roles are used if ENV variables are not set or a shared credentials file is not used:
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials.html

Let me know if you have any issues getting it t work. We are more than happy to review any PRs needed to make this happen.

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

No branches or pull requests

2 participants