New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ec2_metadata_facts reports wrong role name with _expiration suffix #45228
Comments
Files identified in the description: If these files are inaccurate, please update the |
Hi @gchiesa, Thank you for the issue, just so you are aware we have a dedicated Working Group for aws. |
Sorry for the delay in checking this, but I now understand that the underscore check was there to prevent the keys ( |
It is still broken. Now the role is set to the profile name instead of a role name, please see #45534 (comment) |
SUMMARY
The ec2_metadata_facts module reports a wrong role name
ISSUE TYPE
COMPONENT NAME
ec2_metadata_facts.py
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
CentOS Linux release 7.5.1804 (Core)
STEPS TO REPRODUCE
Start an AWS EC2 instance with a instance profile (role) attached
Install ansible 2.6.3 with pip
Run the commands:
ansible localhost -m ec2_metadata_facts | grep instance_profile
EXPECTED RESULTS
We expect to get the role associated to the instance, with a similar output:
ACTUAL RESULTS
It reports instead the
<ROLE_NAME>_expiration
This is due to the changes introduced with this commit:
bed5f73#diff-6b099934176f95df43f465d4ea00b635
The text was updated successfully, but these errors were encountered: