Skip to content

Add more documentation about how to work with existing resources (import/alteration) #1313

Open
@remyleone

Description

@remyleone

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:

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationpriority/important-longtermMedium priority, to be worked on within the following 1-2 business quarters.size/mediumestimated < 1 week

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions