Open bretagne-peiqi opened 1 year ago
I am wondering the cmd := w.executor.CommandContext(ctx, "terraform", "apply", "-refresh-only", "-auto-approve", "-input=false", "-lock=false", "-json")
whether can get the good tfstate file ?, because it generated the file with resources [], and provider thought the resource doesn't exist
I had the same problem,who can support ?
add terraform import resource can resolve this problem
What happened?
importing existed resources with yaml file filled required fields and annotations: crossplane.io/external-name: xxx
expected to import the resource, but following the logs: the provider can't get the good result during oberservation, which means, it failed to get the right tfstate file and thought the resources does't existed and try to create one.
some logs:
How can we reproduce it?
my config file: