Commit graph

33 commits

Author SHA1 Message Date
Ryan Brown
f61ddbc8a9 Merge pull request #3863 from ryansb/iam-pass-module
Bugfix: IAM group modules need `module` passed
2016-07-14 13:34:46 -04:00
Matt Davis
a8e5f27b2c Iam trust policy (#3885)
* added support for trust policies

* added version_added to new params in DOC string

* update version_added on new iam args to 2.2
2016-06-08 09:23:55 -04:00
Ryan S. Brown
1b9e28cc68 IAM group modules need module passed
The IAM group modules were not receiving the `module` object, but they
use `module.fail_json()` in their exception handlers. This patch passes
through the module object so the real errors from boto are exposed,
rather than errors about "NoneType has no method `fail_json`".
2016-06-03 13:15:15 -04:00
Jonathan A. Sternberg
969471f2ab Paginate the results from boto.iam
The default pagination is every 100 items with a maximum of 1000 from
Amazon. This properly uses the marker returned by Amazon to concatenate
the various pages from the results.

This fixes #2440.
2016-06-02 22:30:40 -05:00
codemeup @ Work
7314cc3867 Fixing error exception handling for python3. Does not need to be compa… (#3840)
* Fixing error exception handling for python. Does not need to be compatible with Python2.4 b/c boto is Python 2.6 and above.

* Fixing error exception handling for python. Does not need to be compatible with Python2.4 b/c boto is Python 2.6 and above.

* Fixing compile time errors IRT error exception handling for Python 3.5.
This does not need to be compatible with Python2.4 b/c Boto is Python 2.6 and above.
2016-06-02 12:56:48 -07:00
Kenny Woodson
5474da09bc Unindenting the delete to user (#3147) 2016-05-20 10:26:19 -04:00
Kaz Cheng
f87f0ec277 Allow create_iam_role to return an additional value of role_result and (#2418)
instance_profile_result, in addition to the existing role list and change value
2016-05-18 09:06:11 -04:00
Dennis Conrad
c1787da7ff Fix UnboundLocalError if 'access_key_ids' not supplied
'key_ids' is referenced before it is assigned, causing the module to fail with a UnboundLocalError instead of failing gracefully with a helpful error message.  This very small patch moves the assignment of 'key_ids' to before the variable is referenced.
2016-04-19 19:53:21 +02:00
Jonathan Davila
8b13f2a693 Merge pull request #2278 from wimnat/feature/iam_doc_fix
IAM doc fix
2016-03-30 08:27:32 -04:00
Jonathan Davila
9c286f35be Clarified IAM module doc 2016-03-15 10:15:41 -04:00
Toshio Kuratomi
1c4da434c7 Merge pull request #2421 from willthames/ec2_fix_vpc_security_token
Use connect_to_aws where possible
2016-03-04 11:06:22 -08:00
Ben Visser
593e74cfc5 fixed grammatical issue in iam.py. exit -> exist. 2016-01-12 15:18:30 -08:00
Brian Coca
6d722608d6 Merge pull request #2413 from raben2/devel
Absent Function was not working on user with login profile
2015-11-20 17:00:20 -08:00
Rabenstein
7d665db5e5 Squash of 3 commits for bugfix.
Absent unction was not working on user with login profile
also fixed the exception handling

fixed the delete user function
now works with or without loginprofile (password)

typo
2015-11-11 09:54:55 +01:00
Will Thames
0dd58e9326 Use connect_to_aws where possible
`connect_to_aws` fixes a bug with security tokens in AWS.
Modules should use that rather than calling
`boto.x.connect_to_region`
2015-11-06 19:05:01 +10:00
Etherdaemon
08559670e5 Update try statement as pointed out by defionscode 2015-10-22 09:12:58 +10:00
Etherdaemon
2b2285eb67 fixes #12831 by updating the boto iam connection method to connect_to_region 2015-10-20 16:38:27 +10:00
whiter
cccef7b135 Remove access_key and secret_key as these are provided by aws doc fragment
Remove ec2 doc fragment as region is not required for IAM
2015-10-15 12:58:03 +11:00
Brian Coca
c4f64d822c changed modules to use common ec2 docs for region 2015-10-07 16:16:24 -04:00
Toshio Kuratomi
636eecf354 Fix improper indentation 2015-09-15 14:25:22 -07:00
Rob
da29956f03 Add exception handling to iam 2015-09-14 15:43:49 +10:00
Brian Coca
1268a83eb7 Merge pull request #1782 from civisanalytics/iam_dont_delete_passwords_silently
iam: don't delete passwords by default
2015-07-30 19:51:57 -04:00
billwanjohi
99e3881a7c iam: don't delete passwords by default 2015-07-22 20:46:42 +00:00
Jonathan Davila
def5fdcb21 no_log to iam password 2015-06-29 15:14:50 -04:00
Michael Weinrich
56d4f21c5f Use aws connect calls that allow boto profile use 2015-06-24 11:20:47 +02:00
Benno Joy
3d8bf111b5 Merge pull request #1583 from civisanalytics/iam_accept_sts
iam: use modern helper to allow sts
2015-06-24 09:18:49 +05:30
Benno Joy
54bfdee1e0 Merge pull request #1494 from toninog/devel
fixes to iam group variables and delete group fixes
2015-06-24 08:32:47 +05:30
billwanjohi
33533eb156 iam: use modern helper to allow sts
previous implementation ignored the session token when present
2015-06-23 18:42:30 +00:00
Greg DeKoenigsberg
28a869a030 Updating cloud modules with proper github author information 2015-06-15 14:41:22 -04:00
toninog
fccc925ec5 fixes to code to enable updates of user to groups and delete groups. Fixed example yaml to use groups 2015-06-09 15:27:15 +01:00
toninog
9f3658d901 Fixed bug in example where updating a user to a group
Fixed bug in create_group and update_group whereby paramaters were not being set correctly.
2015-06-08 13:55:24 +01:00
Brian Coca
fc255fbd21 minor doc fixes 2015-06-05 14:09:02 -04:00
Jonathan Davila
801a5e8ed0 iam module with fixes
iam module. fix policy issue.

bugfix

allow for modifying path without declaring new_path
2015-06-05 13:51:27 -04:00