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
The ability to import resources to your state with your CDKTF code.
Use Case
For those occasions where you're trying to build onto an existing, potentially complex set of infrastructure. You might have 10's, 100's or even 1000's of resources already out in the wild in an unmanaged state. The idea of manually importing resources via the Terraform CLI doesn't sound very appealing and may not always be practical.
The beauty of CDKTF is that you're able to run a bunch of steps before finally synthesising your stack. This means you can pull data out of existing CMDBs and various other data platforms to describe your infrastructure. In these situations, there is a lot of value in being able to check if a resource in your CMDB is already managed by terraform (just by parsing the state file or maybe you've added an "isManaged" field to your CMDB), and if it is not, import it. Not only are you saving hours upfront if you already have lots of stuff out in the wild, but you're building a safety net for those occasions where correct process has been bypassed by someone. Or in those transitionary phases whereby Terraform is being introduced into an environment, but you're still working out the kinks in your IDP or wherever people will consume the product from, and you'd like people to continue to provision resources the "old" way for a while as a backup.
Apologies
Sorry, I would volunteer to help with this, but Typescript is really not my bag 😂😭 - Yes, I am aware I need to make time and learn it, that will happen one day haha!
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:
I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
Description
The ability to import resources to your state with your CDKTF code.
Use Case
For those occasions where you're trying to build onto an existing, potentially complex set of infrastructure. You might have 10's, 100's or even 1000's of resources already out in the wild in an unmanaged state. The idea of manually importing resources via the Terraform CLI doesn't sound very appealing and may not always be practical.
The beauty of CDKTF is that you're able to run a bunch of steps before finally synthesising your stack. This means you can pull data out of existing CMDBs and various other data platforms to describe your infrastructure. In these situations, there is a lot of value in being able to check if a resource in your CMDB is already managed by terraform (just by parsing the state file or maybe you've added an "isManaged" field to your CMDB), and if it is not, import it. Not only are you saving hours upfront if you already have lots of stuff out in the wild, but you're building a safety net for those occasions where correct process has been bypassed by someone. Or in those transitionary phases whereby Terraform is being introduced into an environment, but you're still working out the kinks in your IDP or wherever people will consume the product from, and you'd like people to continue to provision resources the "old" way for a while as a backup.
Apologies
Sorry, I would volunteer to help with this, but Typescript is really not my bag 😂😭 - Yes, I am aware I need to make time and learn it, that will happen one day haha!
References
No response
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: