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 AWS credential params for ec2_ami, ec2_elb, ec2_tag, ec2_vpc, route53, and s3 modules #5067

Merged
merged 1 commit into from
Nov 27, 2013

Conversation

justinludwig
Copy link
Contributor

The ec2_ami, ec2_elb, ec2_tag, ec2_vpc, route53, and s3 modules
all canonicalize the AWS access and secret key params as
aws_access_key and aws_secret_key. However, following the fixes for #4540,
those modules now use get_ec2_creds from lib/ansible/module_utils/ec2.py,
which requires access/secret key params to be canonicalized as
ec2_access_key and ec2_secret_key. As a result, AWS credentials passed
to those six modules as parameters are ignored (they instead always use
the AWS credentials specified via environment variables, or nothing).

So this change fixes those six modules to canonicalize the
AWS access and secret key params as ec2_access_key and ec2_secret_key,
allowing them to again accept AWS credentials passed via module params.

The `ec2_ami`, `ec2_elb`, `ec2_tag`, `ec2_vpc`, `route53`, and `s3` modules
all canonicalize the AWS access and secret key params as
`aws_access_key` and `aws_secret_key`. However, following the fixes for ansible#4540,
those modules now use `get_ec2_creds` from `lib/ansible/module_utils/ec2.py`,
which requires access/secret key params to be canonicalized as
`ec2_access_key` and `ec2_secret_key`. As a result, AWS credentials passed
to those six modules as parameters are ignored (they instead always use
the AWS credentials specified via environment variables, or nothing).

So this change fixes those six modules to canonicalize the
AWS access and secret key params as `ec2_access_key` and `ec2_secret_key`,
allowing them to again accept AWS credentials passed via module params.
@mpdehaan
Copy link
Contributor

cc @jctanner, marking this high priority.

jctanner added a commit that referenced this pull request Nov 27, 2013
Fix AWS credential params for ec2_ami, ec2_elb, ec2_tag, ec2_vpc, route53, and s3 modules
@jctanner jctanner merged commit 696ce0e into ansible:devel Nov 27, 2013
@jctanner
Copy link
Contributor

@justinludwig thank you!

jimi-c pushed a commit that referenced this pull request Dec 6, 2016
If the conditional cannot be parsed, the module will now catch the exception
and return a well formed failed message.

fixes #5060
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants