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 a year ago
Relevant content
- asked 4 months ago
- asked 8 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 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.