When I define terraform code for AWS resources I have not used before, I am sometimes unsure about how to define my components. I then often just apply
any component and modify it using the AWS GUI. Then I use terraform plan
to see my changes and adapt my code, so that it corresponds to the existing AWS infrastructure.
I wonder whether there is a more direct way to use the AWS GUI to define terraform code. Is there any way to just map an existing AWS infrastructure to terraform code?