-
Notifications
You must be signed in to change notification settings - Fork 322
Open
Labels
Description
Bug Report
Describe the bug
GPU droplet re-creation doesn't tolerate 404s.
Affected Resource(s)
- digitalocean_droplet
Expected Behavior
Re-creation should destroy, wait for destruction to complete, then re-create, without erroring.
Actual Behavior
$ terraform apply .tfplan
module.gpu_compute.digitalocean_droplet.gpu_droplet["mi325x8-300"]: Creating...
module.gpu_compute.digitalocean_droplet.gpu_droplet["mi325x8-300"]: Still creating... [00m10s elapsed]
╷
│ Error: Error waiting for droplet (536572909) to become ready: Error retrieving droplet: GET https://api.digitalocean.com/v2/droplets/536572909: 404 (request "59af37fd-bb3b-4926-a107-1faa751bbe88") The resource you were accessing could not be found.
│
│ with module.gpu_compute.digitalocean_droplet.gpu_droplet["mi325x8-300"],
│ on ../../../modules/do/gpu_compute/main.tf line 1, in resource "digitalocean_droplet" "gpu_droplet":
│ 1: resource "digitalocean_droplet" "gpu_droplet" {
│
Steps to Reproduce
- Create a GPU droplet
- Change the config in tf to cause re-creation
- terraform apply
Terraform version
v1.14.2
Provider version
v2.71.0
Reactions are currently unavailable