Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How is duplicate resource error ignored during terraform apply ?
Home
Terraform
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.
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: Define null resource in Terraform?
asked
Apr 12, 2021
in
Terraform
by
Robindeniel
#terraform-resource
resource
terraform-questions
terraform-interview-questions
terraform-advanced-questions
terraform-mcq-questions
terraform-questions-answers
0
votes
Q: How does Terraform help in discovering plugins?
asked
Apr 12, 2021
in
Terraform
by
Robindeniel
terraform-questions
terraform-interview-questions
terraform-advanced-questions
terraform-mcq-questions
terraform-questions-answers
terraform
teraform-plugins
0
votes
Q: What are some of the built-in provisioners available in Terraform?
asked
Mar 7, 2023
in
Terraform
by
Robindeniel
provisioners
terraform
0
votes
Q: What are Provisioners in Terraform?
asked
Mar 7, 2023
in
Terraform
by
Robindeniel
provisioners
terraform
0
votes
Q: Why is Terraform used for DevOps?
asked
Mar 6, 2023
in
Terraform
by
rajeshsharma
terraform
0
votes
Q: Are callbacks possible with Terraform on Azure?
asked
Mar 6, 2023
in
Terraform
by
rajeshsharma
terraform
azure
0
votes
Q: What are the most useful Terraform commands?
asked
Mar 6, 2023
in
Terraform
by
rajeshsharma
terraform
0
votes
Q: What do you understand by Terraform in AWS?
asked
Mar 6, 2023
in
Terraform
by
rajeshsharma
terraform
0
votes
Q: Explain some overview of workflow of the core Terraform?
asked
Mar 6, 2023
in
Terraform
by
rajeshsharma
terraform
0
votes
Q: What is the Kubernetes Ingress resource?
asked
Mar 24
in
Kubernetes K8s
by
rajeshsharma
kubernetes
ingress
resource
...