Open
Description
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
Description
I have not found tutorials or guides that explain how I can re-use existing resources and existing state.
I've searched here:
- https://learn.hashicorp.com/tutorials/terraform/cdktf-applications
- https://www.terraform.io/docs/cdktf/index.html
Maybe using https://www.terraform.io/docs/cdktf/concepts/data-sources.html could be an option but it seems to be quite verbose. Is there an easier way to import an existing resource within the state managed by the CDK?
If it is the only way, maybe adding a tutorial/guide to focus on this importing workflow could be helpful. Especially if it combines discovered aspects (tags) to apply different treatments (use tags as an input of a function that will apply other tags to the given resource).