ansible/changelogs/fragments/49113-iam-role-arn-parsing-updated.yml
Vinay Dandekar aed38b12cd [aws] Revert back to getting the AWS role name from the URI (#49427)
* 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
2018-12-04 07:02:00 -08:00

2 lines
135 B
YAML

bugfixes:
- ec2_metadata_facts - Parse IAM role name from the security credential field since the instance profile name is different