hashicorp / terraform-cdk

Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform
https://www.terraform.io/cdktf
Mozilla Public License 2.0
4.88k stars 456 forks source link

removed block: orphan resources managed by cdktf/terraform #3638

Open fathom-parth opened 5 months ago

fathom-parth commented 5 months ago

Description

HCL supports removed blocks which allow you to orphan a resource managed by tf easily: https://developer.hashicorp.com/terraform/language/resources/syntax#removing-resources

If we had something similar in cdktf, it would allow importing resources across stacks much more easily than the method the documentation has you use by instead using something like removed and importFrom on the cdktf objects.

References

No response

Help Wanted

Community Note