1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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.
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 8 mois
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 4 mois
- AWS OFFICIELA mis à jour il y a 3 ans
@weidi - that was it! Sorry for the simple question, after coding all day I missed the obvious thing in the docs. Thank you.