spacelift-io / terraform-provider-spacelift

Terraform provider to interact with Spacelift
MIT License
76 stars 29 forks source link

Documentation: add warning regarding resource destruction in `spacelift_stack_destructor` docs #260

Closed korenyoni closed 2 years ago

korenyoni commented 2 years ago

Description of the change

This PR adds a warning in the TF registry docs explaining that deleting the spacelift_stack_destructor resource will delete the resources in the stack. This is important to note because this resource may be deleted with the intention of disabling the stack destructor functionality. However, doing that when the deactivated attribute is not set to true will result in all of the resources in the stack being deleted.

See: https://github.com/spacelift-io/terraform-provider-spacelift/blob/6b9411707f6243ffa956e06bdaa1659820250c35/spacelift/resource_stack_destructor.go#L78-L104

Type of change

Related issues

N/A

Checklists

Development

Code review

marcinwyszynski commented 2 years ago

The documentation is autogenerated from resource descriptions but no need to update the PR, we'll take it from here.

korenyoni commented 2 years ago

The documentation is autogenerated from resource descriptions but no need to update the PR, we'll take it from here.

Ah didn't know that. Was cross referencing it with terraform-provider-aws which doesn't seem to make use of the Description attribute in schema.Resource.

marcinwyszynski commented 2 years ago

This has been released in 0.1.11.