1 回答
- 最新
- 投票最多
- 评论最多
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.
已回答 2 年前
相关内容
- AWS 官方已更新 8 个月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前
@weidi - that was it! Sorry for the simple question, after coding all day I missed the obvious thing in the docs. Thank you.