Login
Remember
Register
Ask a Question
How is duplicate resource error ignored during terraform apply ?
0
votes
asked
Mar 7, 2023
in
Terraform
by
Robindeniel
How is duplicate resource error ignored during terraform apply ?
terraform
resource
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Mar 7, 2023
by
Robindeniel
You can:
To stop managing those resources, remove them from your Terraform code.
Remove the resources from the API (cloud provider) and recreate them using Terraform.
Terraform those resources and remove the terraform code that is attempting to recreate them.
Use terraform apply —target=xxx to apply only the resources you require.
...