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

Add missing region entries to .aws/credentials file` #164

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

LDiazN
Copy link
Contributor

@LDiazN LDiazN commented Jan 24, 2025

I had an error trying to run an ansible playbook because of a configuration error with AWS, and we solved it by adding the region field in all entries of the credentials file.

Trying to run

./play -i inventory deploy-monitoring.yml -l monitoring.ooni.org --diff --check

I got

You must specify a region. You can also configure your region by running "aws configure".
[WARNING]: Error in vault password file loading (default): Vault password script
/home/luis/Dev/ooni/devops/ansible/password-pipe returned non-zero (253): None
ERROR! Vault password script /home/luis/Dev/ooni/devops/ansible/password-pipe returned non-zero (253): None
(ooni) ➜  ansible git:(password-pipe-aws)

I followed the "run aws configure" advice in the message but it also didn't work.

Adding the region field to every entry in ~/.aws/credentials fixed the problem

I had an error trying to run an ansible playbook because of a configuration error with AWS, and we solved it by adding the region field in all entries of the credentials file
@LDiazN LDiazN requested a review from hellais January 24, 2025 12:05
@hellais hellais merged commit 4446f16 into main Jan 30, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants