Commit Graph

4 Commits (33f9fd31e98db2090265af9434c0bf718f7b051c)

Author SHA1 Message Date
Justin Ludwig bd9e6a74f7 Fix AWS credential params for s3 and other modules
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.
11 years ago
James Tanner 0a5adda059 Fixes #4540 Use shared module snippet to evaluate ec2 credentials 11 years ago
Harrison Gu e31927a03e Fix bug for setting ec2 tags 11 years ago
lwade 649bc49d97 Basic module to tag resources in EC2. 11 years ago