Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Error terraform apply #13

Open
tXambe opened this issue Apr 4, 2019 · 1 comment
Open

Error terraform apply #13

tXambe opened this issue Apr 4, 2019 · 1 comment

Comments

@tXambe
Copy link

tXambe commented Apr 4, 2019

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

@tXambe
Copy link
Author

tXambe commented Apr 9, 2019

Hello,

After delete terraform.tfstate now I have a new error when execute terraform plan 👍
` sudo terraform plan -out=AustinPowers

Error: Error asking for user input: 2 error(s) occurred:

  • Cycle: module.http-rdir.var.redirect_to, module.http-rdir.digitalocean_droplet.http-rdir, module.http-rdir.output.ips
  • Cycle: module.dns-rdir.var.redirect_to, module.dns-rdir.digitalocean_droplet.dns-rdir, module.dns-rdir.output.ips`

A greeting and thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant