Skip to content

generate tf file based on a blueprint subaccount #389

Locked Answered by lechnerc77
shaoyongfeng asked this question in Q&A
Discussion options

You must be logged in to vote

Not fully automated, but with Terraform version 1.5 the so called import blocks have been introduced. With this you can import existing accounts to Terraform this is a very handy evolution of the old terraform import statement.
In order to get your resource definition you must also use the (currently) experimental -generate-config-out flag.

Based on that import that is intended to bring existing infrastructure under management by Terraform you can refine your setup manually (like refactoring into Terraform modules etc.) to have your blueprint for Terraform available. However, some manual work needed to do so.

Depending on the complexity of your blueprint account it might be easier to crea…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lechnerc77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants