You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I do a snapshot of a droplet through automation. This snapshot is a golden image to be used to create another droplets. I want this snapshot to be available in other regions.
Can't find a way to do it through terraform.
Describe the solution you'd like
# 1. Find existing snapshot through data source:data"digitalocean_droplet_snapshot""golden_last" {
name_regex ="^golden"
region ="fra1"
most_recent =true
}
# 2. Using snapshot resource create in every other specified region:resource"digitalocean_droplet_snapshot""goldent_copy" {
id =data.digitalocean_droplet_snapshot.golden_last.id
name =data.digitalocean_droplet_snapshot.golden_last.name
regions = ["nyc3", "sfo3"]
}
Describe alternatives you've considered
I found not very straightforward way to do it through doctl:
doctl compute image-action transfer --region nyc3 <existing droplet snapshot id>
doctl compute image-action transfer --region sfo3 <existing droplet snapshot id>
It's not clear because at least from API docs and Web Panel point droplet snapshots are neither images nor volume snapshots. But despite that you can use "image" API to transfer it to a different region.
Also I found a way to do this with packer (which is good but I'd still need terraform support since region list is dynamically changed through terraform):
Thank you for bringing this to our attention. There is one additional caveat you should be aware of. When working with images once you have them in multiple regions if you delete the image it will delete that image from all regions. This might be okay for your use case.
We encourage you to continue with the work around as Packer is a better choice for managing images. We will look to prioritize implementing the transfer action for images when we can.
Thanks again for your continued use and support of DigitalOcean's Terraform provider.
Is your feature request related to a problem? Please describe.
I do a snapshot of a droplet through automation. This snapshot is a golden image to be used to create another droplets. I want this snapshot to be available in other regions.
Can't find a way to do it through terraform.
Describe the solution you'd like
Describe alternatives you've considered
I found not very straightforward way to do it through
doctl
:It's not clear because at least from API docs and Web Panel point droplet snapshots are neither images nor volume snapshots. But despite that you can use "image" API to transfer it to a different region.
Also I found a way to do this with packer (which is good but I'd still need terraform support since region list is dynamically changed through terraform):
If I miss something would appreciate your help.
The text was updated successfully, but these errors were encountered: