Jun 15, 2023
Anyone who uses Terraform must be familiar with the import
command; it allows you to gather existing resources and put them into your statefile. This way, existing resources which were previously not created using Terraform are now under management of your infrastructure as code.
You can import your resources in the terminal, but you still have to write the code for the resources you import. With Terraform version 1.5 there’s a better solution: import blocks.