Michael Baydoun
3818cc2b95
fixes issues where iam_policy incorrected reported changed
2016-12-08 11:24:45 -05:00
@
3fa745eef9
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-12-08 11:24:34 -05:00
Kalle Lehtonen
02f737cdee
Fix and add more error handling for role policies
...
In case role policy was deleted, we did not handle at all if there
was authorization issue to do the deletion. Also add message when
role is not found and the policy is skipped.
2016-12-08 11:24:16 -05:00
Will Thames
52accd7d1f
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`
2016-12-08 11:24:09 -05:00
Yoichi Imai
b9b08666f5
Fix iam_policy pdoc variable
2016-12-08 11:24:00 -05:00
Bermudez, Jaime
efbdea909e
Simplify logic around "present" state and skip dupes. If the policy doesn't exist or the policy document doesn't match or if we're not skipping dupes, then we go ahead and update the respective user/group/role policy.
2016-12-08 11:23:59 -05:00
Brian Coca
1367e73c94
be smarter when dealing with policy_json input
...
Now module will assume that if the argument is a string it is already formated as json
and will only try to convert non strings into json string.
Also removed unused 'msg' var declarations and the ifs that set them
fixes #2009
2016-12-08 11:23:56 -05:00
Jay Rogers
bef2b75857
Update in Amazon IAM Policy Documentation
...
There were typos in the documentation that made the examples seem misleading of what was being demonstrated. This update fixes that.
2016-12-08 11:23:49 -05:00
Mike Riddle
f0156dda0d
Fixed error message: TypeError: fail_json() takes exactly 1 argument (2 given)
2016-12-08 11:23:48 -05:00
whiter
c0d135e44c
Allow iam_policy to maintain idempotentce if the role referenced has been removed
2016-12-08 11:23:46 -05:00
Etherdaemon
63c8c40a37
Update try statement as pointed out by defionscode
2016-12-08 11:23:42 -05:00
Etherdaemon
9fe689eaec
fixes #12831 by updating the boto iam connection method to connect_to_region
2016-12-08 11:23:42 -05:00
whiter
82c898be5a
Remove 'str' type so that json is properly quoted
2016-12-08 11:23:36 -05:00
Rob
08999ecfd1
Update iam_policy.py
...
Fixed doc for policy_name - it is a required field
Removed empty aliases
2016-12-08 11:23:36 -05:00
wimnat
540061c9fc
Remove unnecessary json.loads
2016-12-08 11:23:35 -05:00
Baraa Basata
63a619fbae
Fix iam_policy example
2016-12-08 11:23:24 -05:00
Michael Weinrich
543cb13f42
Fix connection creation to allow usage of profiles with boto
2016-12-08 11:23:15 -05:00
Toshio Kuratomi
f422782180
Use module.fail_json() instead of sys.exit()
2016-12-08 11:23:14 -05:00
Michael Weinrich
a0466f1f8d
Add the option to pass a string as policy
2016-12-08 11:23:14 -05:00
Greg DeKoenigsberg
18ca7aee07
Updating cloud modules with proper github author information
2016-12-08 11:23:07 -05:00
Jonathan Davila
77fa67a240
author fix
2016-12-08 11:23:04 -05:00
Jonathan Davila
d4aff86349
iam_policy
2016-12-08 11:23:04 -05:00