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

Fix support for IAM role arn in aws config #738

Closed
kaiyan-sheng opened this issue Feb 22, 2021 · 1 comment
Closed

Fix support for IAM role arn in aws config #738

kaiyan-sheng opened this issue Feb 22, 2021 · 1 comment
Assignees
Labels
Team:Integrations Label for the Integrations team

Comments

@kaiyan-sheng
Copy link
Contributor

kaiyan-sheng commented Feb 22, 2021

I added support for IAM role ARN into aws package in elastic/beats#17658 but I believe this credential configuration method still relies on the shared credential file default profile. This issue is to investigate IAM role ARN configuration and improve it in both Beats and the integrations package.

Using metricbeat config as an example, we should be able to also specify credential_profile_name and/or shared_credential_file along with role_arn when the default credential is not at the default location. For example:

- module: aws
  period: 5m
  role_arn: arn:aws:iam::123456789012:role/example-role
  shared_credential_file: /Users/kaiyansheng/.aws/credentials_backup
  credential_profile_name: test
  metricsets:
    - ec2
@kaiyan-sheng kaiyan-sheng self-assigned this Feb 22, 2021
@kaiyan-sheng kaiyan-sheng added the Team:Integrations Label for the Integrations team label Feb 22, 2021
@elasticmachine
Copy link

Pinging @elastic/integrations (Team:Integrations)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Integrations Label for the Integrations team
Projects
None yet
Development

No branches or pull requests

2 participants