0 votes
in Terraform by
How is duplicate resource error ignored during terraform apply ?

1 Answer

0 votes
by

You can:

  1. To stop managing those resources, remove them from your Terraform code.
  2. Remove the resources from the API (cloud provider) and recreate them using Terraform.
  3. Terraform those resources and remove the terraform code that is attempting to recreate them.
  4. Use terraform apply —target=xxx to apply only the resources you require.

Related questions

0 votes
asked Mar 6, 2023 in Terraform by rajeshsharma
0 votes
asked Mar 24 in Kubernetes K8s by rajeshsharma
...