Is there a way in which we can generate terraform script for the accessible resources available in a given region for aws?
CodePudding user response:
To generate a complete setup of terraform based on an existing AWS account, you can use e.g. this tool https://github.com/GoogleCloudPlatform/terraformer
CodePudding user response:
Yes, people most frequently do this with Google's Terraformer.
The specific command that you would need is:
terraformer import aws --regions=<regions comma-delimited>
This will create Terraform configs and state for the resources. It is recommended to use these as a basis.