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

aws inventory script not working for customer using 2FA access #110

Open
kathywan opened this issue Aug 10, 2023 · 0 comments
Open

aws inventory script not working for customer using 2FA access #110

kathywan opened this issue Aug 10, 2023 · 0 comments

Comments

@kathywan
Copy link

customer uses MFA for all their AWS account access. They have local set up that sets environment variables (list below) for terminal sessions. Running the inventory script like ./lw_aws_inventory.sh -o OrganizationAccountAccessRole -p lsnetsinger -r us-east-1 threw error for getCallerIdentity API call. Also confirmed script worked fine once MFA turned off.

Request to improve the script so these variables should take precedence for access AWS account if present in the environment.

export AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY_ID>
export AWS_SECRET_ACCESS_KEY=<AWS_SECRET_ACCESS_KEY>
export AWS_SESSION_TOKEN=<AWS_SESSION_TOKEN>

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

1 participant