Name tag not applied for volume when creating a snapshot
See original GitHub issueHi all,
I have an issue regarding the process of creating a snapshot for a certain EBS volume class by using boto3.
It seems that, even though i declare a Name
tag explicitly, that tag doesn’t get saved. I eventually end up with a blank name tag on the Snapshot declaration:
This is how my code essentially looks like: I have a volume object:
type(volume)
<class 'boto3.resources.factory.ec2.Volume'>
The rest:
tags = [{'Key': 'Name', 'Value': 'some-name'}]
volume.create_tags(Tags=tags)
volume.create_snapshot(
VolumeId=volume.id,
Description=description
)
Am i missing something here, or is this a bug? Please help
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Tag Amazon EBS Snapshots on Creation and Implement ...
be present on the volume from which snapshots are being created. It requires that this tag be applied to all newly created snapshots....
Read more >Tagging AWS EC2 unnamed EC2 volumes with a PowerShell ...
The NoNameTagVolumeList is iterated over and name tags are created from either the name tag of the instance the volume the snapshot was...
Read more >create a snapshot to a EBS volume with tags
I found a better Lambda script which takes snapshot of EBS volume(Secondary volume) based on ec2 instance tags. For example, if your ec2 ......
Read more >Given a tag, search for the most recent snapshot, create ...
Given a tag, search for the most recent snapshot, create a volume and mount it. print 'done! '
Read more >create-snapshot — AWS CLI 2.1.29 Command Reference
The ID of the EBS volume. --tag-specifications (list). The tags to apply to the snapshot during creation. (structure). The tags to apply to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see your point. Thank you @JordonPhillips . I will close this then, appreciate the help!
boto2 would do that, however doing so is an opinionated decision that could not be opted out of. That additional request costs you both money and time and prevents you from adding other tags in the request to make the most out of it. For those reasons (and several others) we avoid making requests on your behalf when you haven’t explicitly initiated them.