mirror of https://github.com/ansible/ansible.git
[aws] Revert back to getting the AWS role name from the URI (#49428)
* Revert back to getting the AWS role name from the URI with a small change (#49113)
- The role name and instance profile name _can_ be different
- Change the delimiter to `:` for keys that are discovered through the JSON parsing (which is not a valid delimiter for AWS IAM role names), this delimiter is still converted to underscore
- Now checks for the existence of that delimiter to remove the cases where the JSON keys are appended to the role name to find the role name
(cherry picked from commit ff9b86f560
)
* Changelog update
pull/49739/head
parent
5a7b01f8b9
commit
dcee72ffda
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- ec2_metadata_facts - Parse IAM role name from the security credential field since the instance profile name is different
|
Loading…
Reference in New Issue