-
-
Save karma-git/5af3066ff7b9d20842b882a79b56ddf6 to your computer and use it in GitHub Desktop.
terraformer - import existing cloud infra from AWS as HCL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "aws" { | |
region = "us-east-1" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ref: https://github.com/GoogleCloudPlatform/terraformer | |
# installation: | |
$ export PROVIDER=aws | |
$ curl -LO https://github.com/GoogleCloudPlatform/terraformer/releases/download/$(curl -s https://api.github.com/repos/GoogleCloudPlatform/terraformer/releases/latest | grep tag_name | cut -d '"' -f “4)/terraformer-${PROVIDER}-linux-amd64” | |
$ chmod +x terraformer-${PROVIDER}-linux-amd64 | |
$ sudo mv terraformer-${PROVIDER}-linux-amd64 /usr/local/bin/terraformer | |
# usage | |
$ terraform init | |
$ terraformer import aws --resources=lambda,vpc --connect=true --regions=us-east-1 --profile=my-profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment