Home > OS >  How to change exiting aws snapshot tag name using python?
How to change exiting aws snapshot tag name using python?

Time:10-12

I'm trying to change the existing AWS EBS Snapshots name but it seems that there is no method is available through which we can change the tag names, can anyone please help me on this?

Thanks

CodePudding user response:

You can call create_tags(), specifying the ID of the EBS Snapshot:

response = client.create_tags(
    Resources=['snapshot-1234'],
    Tags=[
        {
            'Key': 'Name',
            'Value': 'name-you-want-to-store'
        },
    ]
)
  • Related