Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Allow prevent_destroy for provider #304

Open
IvanTurgenev1 opened this issue Oct 14, 2022 · 0 comments
Open

Allow prevent_destroy for provider #304

IvanTurgenev1 opened this issue Oct 14, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@IvanTurgenev1
Copy link

IvanTurgenev1 commented Oct 14, 2022

I'm trying to use https://registry.terraform.io/providers/pan-net/powerdns/latest as crossplane terrajet provider
and when i'm trying to change A records by adding multiple values for A records:
from

apiVersion: record.powerdns.jet.crossplane.io/v1alpha1
kind: Record
metadata:
  name: example
spec:
  forProvider:
   zone: "example.com."
   name: "www.example.com."
   type: "A"
   ttl: 300
   records: ["192.168.0.11"]
  providerConfigRef:
    name: powerdns

to

apiVersion: record.powerdns.jet.crossplane.io/v1alpha1
kind: Record
metadata:
  name: example
spec:
  forProvider:
   zone: "example.com."
   name: "www.example.com."
   type: "A"
   ttl: 300
   records: ["192.168.0.11", "192.168.0.12"]
  providerConfigRef:
    name: powerdns

error happens:
"Resource powerdns_record.example has lifecycle.prevent_destroy set, but the plan calls for this resource to be destroyed."

How can i resolve this problem? is it possibly to set prevent_destroy=fasle somehow?

@IvanTurgenev1 IvanTurgenev1 added the bug Something isn't working label Oct 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant