You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say I create a subnet using cdktf python. The properties of this subnet is read from a config file. If I remove the config file, this subnet will be destroyed. This is fine.
But, I want to identify/know if this resource will be destroyed, so I can do some cleanup before the actual destroy. Please, is if this possible?
In simple terms:
subnet = SubnetClass(on_destroy=cleanup)
References
No response
Help Wanted
I'm interested in contributing a fix myself
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
The text was updated successfully, but these errors were encountered:
Description
Let me make up a scenario in GCP.
Say I create a subnet using cdktf python. The properties of this subnet is read from a config file. If I remove the config file, this subnet will be destroyed. This is fine.
But, I want to identify/know if this resource will be destroyed, so I can do some cleanup before the actual destroy. Please, is if this possible?
In simple terms:
subnet = SubnetClass(on_destroy=cleanup)
References
No response
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: