digitalocean_droplet.dns-c2: Error waiting for droplet to be unlocked for destroy (138760313): Error retrieving d roplet: GET https://api.digitalocean.com/v2/droplets/138760313: 401 Unable to authenticate you.
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
I have tried to configure everything from scratch.Has something similar happened to anyone ?
Hello,
When I executed terraform apply XXX , I have the follow error:
Error: Error applying plan:
3 error(s) occurred:
module.hash-http-c2.digitalocean_droplet.http-c2: 1 error(s) occurred:
digitalocean_droplet.http-c2: Error creating droplet: POST https://api.digitalocean.com/v2/droplets: 401 Unable t o authenticate you.
module.dns_c2.digitalocean_droplet.dns-c2 (destroy): 1 error(s) occurred:
digitalocean_droplet.dns-c2: Error waiting for droplet to be unlocked for destroy (138760313): Error retrieving d roplet: GET https://api.digitalocean.com/v2/droplets/138760313: 401 Unable to authenticate you.
module.dns-rdir.digitalocean_ssh_key.ssh_key: 1 error(s) occurred:
digitalocean_ssh_key.ssh_key: Error creating SSH Key: POST https://api.digitalocean.com/v2/account/keys: 401 Unable to authenticate you.
Terraform does not automatically rollback in the face of errors. Instead, your Terraform state file has been partially updated with any resources that successfully completed. Please address the error above and apply again to incrementally change your infrastructure.
I have tried to configure everything from scratch.Has something similar happened to anyone ?
A greeting and thanks