Consider deprecating the force_delete_production_type
provider parameter in favour of a prevent_destroy
on the pingone_environment
resource
#235
Labels
service/base
PingOne Platform
type/enhancement/ux
Enhancements specifically for user experience of the provider
Community Note
Description
To allow a better design pattern of per-resource destroy protection, the global provider parameter
force_delete_production_type
could be deprecated in favour of aprevent_destroy_production_type
on thepingone_environment
resource itself.This way destroy protection can be applied per-environment, and may allow a better model for per-resource destroy protection and data delete protection going forward.
The
prevent_destroy_production_type
on thepingone_environment
would default totrue
and the HCL writer would have to explicitly set the value tofalse
to allow forceful destroy of aPRODUCTION
environment.Note that this parameter will behave in the same way as the current provider parameter
force_delete_production_type
in that it forcefully overrides the environment's in-built protection of environments ofPRODUCTION
type.To do: consider a global method of resource protection that can be applied to any resource.
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: