lifecycle.prevent_destroy issue for resource groups: Instance trying to be destroyed after creation and we can see resources have SYNCED False after READY became True #134
Labels
bug
Something isn't working
info:v1beta1-migration
Encountered while moving a resource from v1alpha1 to v1beta1
stale
What happened?
During testing the resource groups we have an issue with lifecycle.prevent_destroy.
List of resources:
For example will take error for aws_appmesh_virtual_node (all another resources have the same problem) - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appmesh_virtual_node
Error message:
message: 'observe failed: cannot run plan: plan failed: Instance cannot be destroyed:
Resource aws_appmesh_virtual_node.serviceb1 has lifecycle.prevent_destroy set,
but the plan calls for this resource to be destroyed. To avoid this error and
continue with the plan, either disable lifecycle.prevent_destroy or reduce the
scope of the plan using the -target flag.'
How can we reproduce it?
Copy generated manifest, add missing dependancy aws_appmesh_mesh, try to apply manifest.
yaml_output.txt
virtualnode.yaml.txt
The following manifests can be used to reproduce the issue:
What environment did it happen in?
The text was updated successfully, but these errors were encountered: