Closed Akasurde closed 2 months ago
cc @thinkopensource
@thinkopensource This code is only to add new tags to and existing ASG, so there is no template or launchconfig. The objective is to replicate this command in ansible module
aws autoscaling create-or-update-tags --tags ResourceId=my-eks,ResourceType=auto-scaling-group,Key=New tag,Value=New Value,PropagateAtLaunch=true
@thinkopensource can you provide the version of the collection you are using?
.local/lib/python3.10/site-packages/ansible_collections Collection Version
amazon.aws 7.5.0 community.aws 7.2.0
Collection Version
amazon.aws 7.6.0 community.aws 7.2.0
But is true that appears 2 times, can affect this?
Hi @Akasurde @thinkopensource,
I tried adding a tag to the existing ASG and didn't encounter any issues with both the latest amazon.aws collection and amazon.aws 7.5.0. From the module code, it appears that if the ASG exists, the launch template for the ASG will be available and won't result in the error mentioned above. Could you please share the output of asg_info from the playbook above? Additionally, please refer to a similar task used for testing this module.
Hi @Akasurde @thinkopensource , since the issue is not reproducible from our end, I am closing this issue. If you happen to reencounter the issue, please feel free to reopen it.
Summary
`trying to add new tag inside my current ASG created before seems apply changes but appears this error and break
Issue Type
Bug Report
Component Name
ec2_asg
Ansible Version
Configuration
OS / Environment
Ubuntu 22.04 WSL
Steps to Reproduce
Expected Results
New tag added to ASG
Actual Results
Code of Conduct