terraformer

Generate Terraform code from existing cloud infrastructure

brewmacoslinux
Try with needOr install directly
Source

About

CLI tool to generate terraform files from existing infrastructure

Commands

terraformer

Examples

Import all AWS resources from a specific region$ terraformer import aws --resources=* --regions=us-east-1
Import specific AWS resources (e.g., EC2 instances and security groups)$ terraformer import aws --resources=instances,security_groups --regions=us-west-2
Import GCP resources from a specific project$ terraformer import gcp --resources=instances,networks --projects=my-project-id