Skip to content

Instantly share code, notes, and snippets.

@yuklia
Created July 21, 2020 07:08
Show Gist options
  • Save yuklia/828fe5b319ce229757685794ec5e7abc to your computer and use it in GitHub Desktop.
Save yuklia/828fe5b319ce229757685794ec5e7abc to your computer and use it in GitHub Desktop.
# Adds or overwrites only the specified tags for the specified Amazon EC2 resource or resources.
# When you specify an existing tag key, the value is overwritten with the new value
client = boto3.client('ec2')
response = client.create_tags(
Resources=[
'vol-01e66940668c0bda8',
],
Tags=[
{
'Key': 'Name',
'Value': 'Вредефорт',
},
],
)
print(response)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment