Commit Graph

14 Commits (40d9318afbc687fa3783dad4e7f48febd8473266)

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
Michael DeHaan 08996d78d6 Add version_added to all modules missing version_added information, the docs formatter will now
raise errors when omitted, updated changelog with new modules.
11 years ago
James Tanner 0a5adda059 Fixes #4540 Use shared module snippet to evaluate ec2 credentials 11 years ago
Yap Sok Ann 05a235a318 ec2_ami: Account for AWS's "eventual consistency" with AMI creation.
Calling `ec2.get_image` right after `ec2.create_image` may raise error
"InvalidAMIID.NotFound". This has happend roughly 1 time out of 10 for me.

Other people has bitten by this too:
- 5707f100a0
- http://stackoverflow.com/a/14794952
- https://bitbucket.org/utoolity/bamboo-aws-plugin/pull-request/22/baws-116-fix-ec2-image-task-failing-with/diff
11 years ago
James Cammarata d9c460ed07 Merge branch 'rb2' of https://github.com/bpennypacker/ansible into bpennypacker-rb2
Conflicts:
	library/cloud/route53
11 years ago
Joshua Lund fe5154f0c6 Fixing typo in EC2 modules 11 years ago
Bruce Pennypacker 11470fea04 Rebase attempt
No idea if I'm rebasing properly or not.  This is my first attempt.
11 years ago
Michael DeHaan 5c8e5c81de Fix YAML doc errors. 11 years ago
Evan Duffield c9cd296a09 added note about AMI security 12 years ago
Evan Duffield 56471c52a1 Merge branch 'devel' of https://github.com/evan82/ansible into devel 12 years ago
Evan Duffield dcc850dccf added region to spec 12 years ago
Evan eaa9233cc8 Getting timeout errors this morning as AMIs are taking a bit longer to create, so I changed to timeout to 15 minutes 12 years ago
Evan 200f69f9d5 fixed spelling errors, unused variables and unused import 12 years ago
Evan Duffield dca20ca508 Added module for baking EC2 AMIs 12 years ago