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 authentication from IAM Roles #5

Open
1 of 4 tasks
akhan4u opened this issue Jan 25, 2023 · 0 comments
Open
1 of 4 tasks

Support authentication from IAM Roles #5

akhan4u opened this issue Jan 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@akhan4u
Copy link

akhan4u commented Jan 25, 2023

Feature Request

Is your feature request related to a problem? Please describe.

aws-cost is unable to run on accounts that authenticate via IAM Role-based authentication.

For example:

[profile marketingadmin]
role_arn = arn:aws:iam::123456789012:role/marketingadminrole
source_profile = user1

Describe the solution you'd like

aws-cost is able to run with IAM Role based authentication.

Describe alternatives you've considered

I've tried setting the AWS AUTH ENV Vars which I get post-authenticating from the IAM Role but it still doesn't work

AWS_PROFILE=
AWS_REGION=
AWS_SECRET_ACCESS_KEY=
AWS_ACCESS_KEY_ID=
AWS_SESSION_TOKEN=

It gives the same error

    Error:
    
    Could not find the AWS credentials in the following files for the profile "marketingadmin":
      ~/.aws/credentials
      ~/.aws/config

    If the config files exist at different locations, set the following environment variables:
      AWS_SHARED_CREDENTIALS_FILE
      AWS_CONFIG_FILE

    You can also configure the credentials via the following command:
      aws configure --profile superdev

    You can also provide the credentials via the following options:
      --access-key
      --secret-key
      --region
    

Are you willing to resolve this issue by submitting a Pull Request?

  • Yes, I have the time, and I know how to start.
  • Yes, I have the time, but I don't know how to start. I would need guidance.
  • No, I don't have the time, although I believe I could do it if I had the time...
  • No, I don't have the time and I wouldn't even know how to start.
@akhan4u akhan4u added the enhancement New feature or request label Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant