-
Notifications
You must be signed in to change notification settings - Fork 336
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_ec2 does not fallback to env var when boto_profile is not found #127
Comments
This behaviour has been changed by #99 and the behaviour you're after should be available in Ansible 2.10. At this point in time I do not plan on requesting a backport of the change. |
Actually, sorry I just realised this is the inventory plugin, not the module. |
For the record, I also tested with last version of amazon.aws collection (not only the verion bundled with ansible 2.9). |
Hi @Akasurde, it sounds like we should just open an AWX feature request and close this one. What do you think? |
@DeLoWaN to confirm, does the bug only happen when you are in AWX? If so, could you please refile the issue under AWX? |
Yes it does. I created one as required. |
Merci @DeLoWaN, You can already configure the profile with the |
SUMMARY
I wanted to setup AWX with my project. In my aws_ec2 inventory plugin, I specified a boto_profile var since I have multiple ones configured locally.
Problem is, AWX does not provide a way to specify what boto profile to feed. Instead, it feeds only the env var:
Consequently, the plugin crashes since it does not use the provided env var but wants to read the boto profile.
Honestly I don't know which product has to change its behaviour:
ISSUE TYPE
COMPONENT NAME
aws_ec2
ANSIBLE VERSION
I also tested with last version of amazon.aws collection
CONFIGURATION
OS / ENVIRONMENT
python3 / debian buster
STEPS TO REPRODUCE
EXPECTED RESULTS
aws_ec2 can use the credentials env var even if the boto profile is missing
ACTUAL RESULTS
The inventory can't be parsed
The text was updated successfully, but these errors were encountered: