1 Answer
- Newest
- Most votes
- Most comments
1
Thank you for the detailed description.
The ASG name should be specified as ResourceId in the Tags:
response = client.create_or_update_tags(
Tags=[
{
'Key': 'Role',
'PropagateAtLaunch': True,
'ResourceId': 'my-auto-scaling-group',
'ResourceType': 'auto-scaling-group',
'Value': 'WebServer',
}
],
)
print(response)
Refer to https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/autoscaling.html#AutoScaling.Client.create_or_update_tags for more information.
answered 3 years ago
Relevant content
- asked 3 years ago

@weidi - that was it! Sorry for the simple question, after coding all day I missed the obvious thing in the docs. Thank you.