Skip to content

Instantly share code, notes, and snippets.

@srockstyle
Created March 22, 2020 01:24
Show Gist options
  • Save srockstyle/6798c9627f41458131ea791cf87abf71 to your computer and use it in GitHub Desktop.
Save srockstyle/6798c9627f41458131ea791cf87abf71 to your computer and use it in GitHub Desktop.
terraformerインストール
#install
brew install terraformer
#versionでればおっけー
$ terraformer -v
#help
% terraformer help (git)-[feature/vpc_network] - (m1)
Usage:
[command]
Available Commands:
help Help about any command
import Import current state to Terraform configuration
plan Plan to import current state to Terraform configuration
version Print the version number of Terraformer
Flags:
-h, --help help for this command
Use " [command] --help" for more information about a command.
#importしたいのでimportのhelp
% terraformer import --help (git)-[feature/vpc_network] - (m1)
Import current state to Terraform configuration
Usage:
import [command]
Available Commands:
alicloud Import current State to terraform configuration from alicloud
aws Import current state to Terraform configuration from AWS
azure Import current state to Terraform configuration from Azure
cloudflare Import current state to Terraform configuration from Cloudflare
commercetools Import current state to Terraform configuration from Commercetools
datadog Import current state to Terraform configuration from Datadog
digitalocean Import current state to Terraform configuration from DigitalOcean
fastly Import current state to Terraform configuration from Fastly
github Import current state to Terraform configuration from GitHub
google Import current state to Terraform configuration from Google Cloud
heroku Import current state to Terraform configuration from Heroku
keycloak Import current state to Terraform configuration from Keycloak
kubernetes Import current state to Terraform configuration from Kubernetes
linode Import current state to Terraform configuration from Linode
logzio Import current state to Terraform configuration from Logz.io
newrelic Import current state to Terraform configuration from New Relic
openstack Import current state to Terraform configuration from OpenStack
plan Import planned state to Terraform configuration
rabbitmq Import current state to Terraform configuration from RabbitMQ
vultr Import current state to Terraform configuration from Vultr
#コマンド
terraformer import google --resources=cloudsql,iam,gcs --connect=true --regions=asia-northeast1 --projects=srockstyle-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment