You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When use model amazon.aws.ec2_spot_instance with tags specified, the spot instance got launched but the tags are missing, the tags are only shown in the AWS console "Spot Requests" page. See screenshot attached.
I'm upgrading Ansible version from 2.9 to 9 at the moment, the aws spot request is still working in 2.9 version with the tags, I've referenced the this AWS Doc page: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-spot-instances-request-tags.html added an iam policy for my user to allow RequestSpotInstances and CreateTags, however it's still not working. I wonder if it's permission related or it's a bug of the ec2_spot_instance model.
Summary
When use model amazon.aws.ec2_spot_instance with tags specified, the spot instance got launched but the tags are missing, the tags are only shown in the AWS console "Spot Requests" page. See screenshot attached.
I'm upgrading Ansible version from 2.9 to 9 at the moment, the aws spot request is still working in 2.9 version with the tags, I've referenced the this AWS Doc page: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-spot-instances-request-tags.html added an iam policy for my user to allow RequestSpotInstances and CreateTags, however it's still not working. I wonder if it's permission related or it's a bug of the ec2_spot_instance model.
Any advice would be much appreciated , thanks!
Issue Type
Bug Report
Component Name
ec2_spot_instance
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
(ansible9) [rli@sandbox1 cluster]$ cat /etc/redhat-release
Rocky Linux release 8.7 (Green Obsidian)
Steps to Reproduce
Expected Results
The spot instance launched with 2 tags attached
Name: "test_tag"
cluster_id: "12345"
Actual Results
Please note that I masked all the personal aws info in the console output wit "xxxx".
Code of Conduct
The text was updated successfully, but these errors were encountered: