Skip to content

Instantly share code, notes, and snippets.

@rifelpet
Last active April 12, 2019 17:02
Show Gist options
  • Select an option

  • Save rifelpet/35040fee5fac4d8dc05db9d85cf5fb61 to your computer and use it in GitHub Desktop.

Select an option

Save rifelpet/35040fee5fac4d8dc05db9d85cf5fb61 to your computer and use it in GitHub Desktop.
Terraform 0.12.0-beta1 dropping inline comments during 0.12upgrade
2019/04/12 09:58:07 [INFO] Terraform version: 0.12.0 beta1
2019/04/12 09:58:07 [INFO] Go runtime version: go1.11.5
2019/04/12 09:58:07 [INFO] CLI args: []string{"/path/to/terraform", "0.12upgrade"}
2019/04/12 09:58:07 [DEBUG] Attempting to open CLI config file: /Users/user/.terraformrc
2019/04/12 09:58:07 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/04/12 09:58:07 [INFO] CLI command args: []string{"0.12upgrade"}
2019/04/12 09:58:07 [DEBUG] command: asking for input: "Would you like to upgrade the module in the current directory?"
This command will rewrite the configuration files in the given directory so
that they use the new syntax features from Terraform v0.12, and will identify
any constructs that may need to be adjusted for correct operation with
Terraform v0.12.
We recommend using this command in a clean version control work tree, so that
you can easily see the proposed changes as a diff against the latest commit.
If you have uncommited changes already present, we recommend aborting this
command and dealing with them before running this command again.
Would you like to upgrade the module in the current directory?
Only 'yes' will be accepted to confirm.
Enter a value: yes
2019/04/12 09:58:08 [DEBUG] checking for provider in "."
-----------------------------------------------------------------------------
2019/04/12 09:58:08 [DEBUG] checking for provider in "/Users/user/source-code/other/bin"
2019/04/12 09:58:08 [WARN] found legacy provider "terraform-provider-aws"
2019/04/12 09:58:08 [WARN] found legacy provider "terraform-provider-terraform"
2019/04/12 09:58:08 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2019/04/12 09:58:08 [DEBUG] checking for provider in "/Users/user/.terraform.d/plugins"
2019/04/12 09:58:08 [DEBUG] found provider "terraform-provider-null_v2.1.0"
2019/04/12 09:58:08 [DEBUG] found valid plugin: "null", "2.1.0", "/Users/user/.terraform.d/plugins/terraform-provider-null_v2.1.0"
2019/04/12 09:58:08 [DEBUG] checking for provisioner in "."
2019/04/12 09:58:08 [DEBUG] checking for provisioner in "/Users/user/source-code/other/bin"
2019/04/12 09:58:08 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2019/04/12 09:58:08 [DEBUG] checking for provisioner in "/Users/user/.terraform.d/plugins"
2019/04/12 09:58:08 [TRACE] configupgrade: Analyzing "main.tf"
2019/04/12 09:58:08 [TRACE] Resource block for null_resource.foo requires provider "null"
2019/04/12 09:58:08 [TRACE] Fetching schema from provider "null"
2019-04-12T09:58:08.774-0700 [INFO] plugin: configuring client automatic mTLS
2019-04-12T09:58:08.809-0700 [DEBUG] plugin: starting plugin: path=/Users/user/.terraform.d/plugins/terraform-provider-null_v2.1.0 args=[/Users/user/.terraform.d/plugins/terraform-provider-null_v2.1.0]
2019-04-12T09:58:08.816-0700 [DEBUG] plugin: plugin started: path=/Users/user/.terraform.d/plugins/terraform-provider-null_v2.1.0 pid=3835
2019-04-12T09:58:08.816-0700 [DEBUG] plugin: waiting for RPC address: path=/Users/user/.terraform.d/plugins/terraform-provider-null_v2.1.0
2019-04-12T09:58:08.830-0700 [INFO] plugin.terraform-provider-null_v2.1.0: configuring server automatic mTLS: timestamp=2019-04-12T09:58:08.830-0700
2019-04-12T09:58:08.878-0700 [DEBUG] plugin.terraform-provider-null_v2.1.0: plugin address: address=/var/folders/ps/1nzjtv314fs5pkf3sgs49yc80000gp/T/plugin000317270 network=unix timestamp=2019-04-12T09:58:08.878-0700
2019-04-12T09:58:08.878-0700 [DEBUG] plugin: using plugin: version=5
2019/04/12 09:58:08 [TRACE] GRPCProvider: GetSchema
2019/04/12 09:58:08 [TRACE] Fetching schema from provisioner "salt-masterless"
2019-04-12T09:58:08.950-0700 [DEBUG] plugin: starting plugin: path=/path/to/terraform args=[/path/to/terraform, internal-plugin, provisioner, salt-masterless]
2019-04-12T09:58:08.952-0700 [DEBUG] plugin: plugin started: path=/path/to/terraform pid=3836
2019-04-12T09:58:08.953-0700 [DEBUG] plugin: waiting for RPC address: path=/path/to/terraform
2019-04-12T09:58:08.978-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:08 [INFO] Terraform version: 0.12.0 beta1
2019-04-12T09:58:08.978-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:08 [INFO] Go runtime version: go1.11.5
2019-04-12T09:58:08.978-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:08 [INFO] CLI args: []string{"/path/to/terraform", "internal-plugin", "provisioner", "salt-masterless"}
2019-04-12T09:58:08.978-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:08 [DEBUG] Attempting to open CLI config file: /Users/user/.terraformrc
2019-04-12T09:58:08.978-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:08 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019-04-12T09:58:08.980-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:08 [INFO] CLI command args: []string{"internal-plugin", "provisioner", "salt-masterless"}
2019-04-12T09:58:08.981-0700 [DEBUG] plugin.terraform0.12: salt-masterless-provisioner (internal) 2019/04/12 09:58:08 [INFO] Starting provisioner plugin salt-masterless
2019-04-12T09:58:08.983-0700 [DEBUG] plugin.terraform0.12: plugin address: address=/var/folders/ps/1nzjtv314fs5pkf3sgs49yc80000gp/T/plugin261996227 network=unix timestamp=2019-04-12T09:58:08.982-0700
2019-04-12T09:58:08.983-0700 [DEBUG] plugin: using plugin: version=5
2019/04/12 09:58:08 [TRACE] Fetching schema from provisioner "chef"
2019-04-12T09:58:08.989-0700 [DEBUG] plugin: starting plugin: path=/path/to/terraform args=[/path/to/terraform, internal-plugin, provisioner, chef]
2019-04-12T09:58:08.992-0700 [DEBUG] plugin: plugin started: path=/path/to/terraform pid=3837
2019-04-12T09:58:08.993-0700 [DEBUG] plugin: waiting for RPC address: path=/path/to/terraform
2019-04-12T09:58:09.019-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] Terraform version: 0.12.0 beta1
2019-04-12T09:58:09.019-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] Go runtime version: go1.11.5
2019-04-12T09:58:09.019-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] CLI args: []string{"/path/to/terraform", "internal-plugin", "provisioner", "chef"}
2019-04-12T09:58:09.019-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [DEBUG] Attempting to open CLI config file: /Users/user/.terraformrc
2019-04-12T09:58:09.019-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019-04-12T09:58:09.021-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] CLI command args: []string{"internal-plugin", "provisioner", "chef"}
2019-04-12T09:58:09.021-0700 [DEBUG] plugin.terraform0.12: chef-provisioner (internal) 2019/04/12 09:58:09 [INFO] Starting provisioner plugin chef
2019-04-12T09:58:09.023-0700 [DEBUG] plugin: using plugin: version=5
2019-04-12T09:58:09.023-0700 [DEBUG] plugin.terraform0.12: plugin address: address=/var/folders/ps/1nzjtv314fs5pkf3sgs49yc80000gp/T/plugin946083648 network=unix timestamp=2019-04-12T09:58:09.023-0700
2019/04/12 09:58:09 [TRACE] Fetching schema from provisioner "file"
2019-04-12T09:58:09.025-0700 [DEBUG] plugin: starting plugin: path=/path/to/terraform args=[/path/to/terraform, internal-plugin, provisioner, file]
2019-04-12T09:58:09.029-0700 [DEBUG] plugin: plugin started: path=/path/to/terraform pid=3838
2019-04-12T09:58:09.029-0700 [DEBUG] plugin: waiting for RPC address: path=/path/to/terraform
2019-04-12T09:58:09.050-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] Terraform version: 0.12.0 beta1
2019-04-12T09:58:09.050-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] Go runtime version: go1.11.5
2019-04-12T09:58:09.050-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] CLI args: []string{"/path/to/terraform", "internal-plugin", "provisioner", "file"}
2019-04-12T09:58:09.050-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [DEBUG] Attempting to open CLI config file: /Users/user/.terraformrc
2019-04-12T09:58:09.050-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019-04-12T09:58:09.051-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] CLI command args: []string{"internal-plugin", "provisioner", "file"}
2019-04-12T09:58:09.052-0700 [DEBUG] plugin.terraform0.12: file-provisioner (internal) 2019/04/12 09:58:09 [INFO] Starting provisioner plugin file
2019-04-12T09:58:09.053-0700 [DEBUG] plugin: using plugin: version=5
2019-04-12T09:58:09.053-0700 [DEBUG] plugin.terraform0.12: plugin address: address=/var/folders/ps/1nzjtv314fs5pkf3sgs49yc80000gp/T/plugin945200013 network=unix timestamp=2019-04-12T09:58:09.053-0700
2019/04/12 09:58:09 [TRACE] Fetching schema from provisioner "habitat"
2019-04-12T09:58:09.056-0700 [DEBUG] plugin: starting plugin: path=/path/to/terraform args=[/path/to/terraform, internal-plugin, provisioner, habitat]
2019-04-12T09:58:09.059-0700 [DEBUG] plugin: plugin started: path=/path/to/terraform pid=3839
2019-04-12T09:58:09.059-0700 [DEBUG] plugin: waiting for RPC address: path=/path/to/terraform
2019-04-12T09:58:09.082-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] Terraform version: 0.12.0 beta1
2019-04-12T09:58:09.082-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] Go runtime version: go1.11.5
2019-04-12T09:58:09.082-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] CLI args: []string{"/path/to/terraform", "internal-plugin", "provisioner", "habitat"}
2019-04-12T09:58:09.082-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [DEBUG] Attempting to open CLI config file: /Users/user/.terraformrc
2019-04-12T09:58:09.082-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019-04-12T09:58:09.083-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] CLI command args: []string{"internal-plugin", "provisioner", "habitat"}
2019-04-12T09:58:09.084-0700 [DEBUG] plugin.terraform0.12: habitat-provisioner (internal) 2019/04/12 09:58:09 [INFO] Starting provisioner plugin habitat
2019-04-12T09:58:09.085-0700 [DEBUG] plugin: using plugin: version=5
2019-04-12T09:58:09.085-0700 [DEBUG] plugin.terraform0.12: plugin address: address=/var/folders/ps/1nzjtv314fs5pkf3sgs49yc80000gp/T/plugin918966274 network=unix timestamp=2019-04-12T09:58:09.085-0700
2019/04/12 09:58:09 [TRACE] Fetching schema from provisioner "local-exec"
2019-04-12T09:58:09.089-0700 [DEBUG] plugin: starting plugin: path=/path/to/terraform args=[/path/to/terraform, internal-plugin, provisioner, local-exec]
2019-04-12T09:58:09.093-0700 [DEBUG] plugin: plugin started: path=/path/to/terraform pid=3840
2019-04-12T09:58:09.093-0700 [DEBUG] plugin: waiting for RPC address: path=/path/to/terraform
2019-04-12T09:58:09.116-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] Terraform version: 0.12.0 beta1
2019-04-12T09:58:09.116-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] Go runtime version: go1.11.5
2019-04-12T09:58:09.116-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] CLI args: []string{"/path/to/terraform", "internal-plugin", "provisioner", "local-exec"}
2019-04-12T09:58:09.116-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [DEBUG] Attempting to open CLI config file: /Users/user/.terraformrc
2019-04-12T09:58:09.116-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019-04-12T09:58:09.119-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] CLI command args: []string{"internal-plugin", "provisioner", "local-exec"}
2019-04-12T09:58:09.119-0700 [DEBUG] plugin.terraform0.12: local-exec-provisioner (internal) 2019/04/12 09:58:09 [INFO] Starting provisioner plugin local-exec
2019-04-12T09:58:09.123-0700 [DEBUG] plugin.terraform0.12: plugin address: address=/var/folders/ps/1nzjtv314fs5pkf3sgs49yc80000gp/T/plugin321336103 network=unix timestamp=2019-04-12T09:58:09.123-0700
2019-04-12T09:58:09.124-0700 [DEBUG] plugin: using plugin: version=5
2019/04/12 09:58:09 [TRACE] Fetching schema from provisioner "remote-exec"
2019-04-12T09:58:09.126-0700 [DEBUG] plugin: starting plugin: path=/path/to/terraform args=[/path/to/terraform, internal-plugin, provisioner, remote-exec]
2019-04-12T09:58:09.129-0700 [DEBUG] plugin: plugin started: path=/path/to/terraform pid=3841
2019-04-12T09:58:09.129-0700 [DEBUG] plugin: waiting for RPC address: path=/path/to/terraform
2019-04-12T09:58:09.152-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] Terraform version: 0.12.0 beta1
2019-04-12T09:58:09.152-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] Go runtime version: go1.11.5
2019-04-12T09:58:09.152-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] CLI args: []string{"/path/to/terraform", "internal-plugin", "provisioner", "remote-exec"}
2019-04-12T09:58:09.152-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [DEBUG] Attempting to open CLI config file: /Users/user/.terraformrc
2019-04-12T09:58:09.152-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019-04-12T09:58:09.152-0700 [DEBUG] plugin.terraform0.12: 2019/04/12 09:58:09 [INFO] CLI command args: []string{"internal-plugin", "provisioner", "remote-exec"}
2019-04-12T09:58:09.153-0700 [DEBUG] plugin.terraform0.12: remote-exec-provisioner (internal) 2019/04/12 09:58:09 [INFO] Starting provisioner plugin remote-exec
2019-04-12T09:58:09.154-0700 [DEBUG] plugin: using plugin: version=5
2019-04-12T09:58:09.154-0700 [DEBUG] plugin.terraform0.12: plugin address: address=/var/folders/ps/1nzjtv314fs5pkf3sgs49yc80000gp/T/plugin175592276 network=unix timestamp=2019-04-12T09:58:09.154-0700
2019/04/12 09:58:09 [TRACE] configupgrade: Working on "main.tf"
2019/04/12 09:58:09 [TRACE] configupgrade: Upgrading null_resource.foo at main.tf:1,1-1
Upgrade complete!
The configuration files were upgraded successfully. Use your version control
2019-04-12T09:58:09.169-0700 [DEBUG] plugin: plugin process exited: path=/path/to/terraform pid=3837
2019-04-12T09:58:09.169-0700 [DEBUG] plugin: plugin exited
2019-04-12T09:58:09.169-0700 [DEBUG] plugin: plugin process exited: path=/path/to/terraform pid=3839
2019-04-12T09:58:09.169-0700 [DEBUG] plugin: plugin exited
2019-04-12T09:58:09.169-0700 [DEBUG] plugin: plugin process exited: path=/path/to/terraform pid=3841
2019-04-12T09:58:09.169-0700 [DEBUG] plugin: plugin exited
2019-04-12T09:58:09.170-0700 [DEBUG] plugin: plugin process exited: path=/path/to/terraform pid=3838
2019-04-12T09:58:09.171-0700 [DEBUG] plugin: plugin exited
2019-04-12T09:58:09.171-0700 [DEBUG] plugin: plugin process exited: path=/path/to/terraform pid=3836
2019-04-12T09:58:09.171-0700 [DEBUG] plugin: plugin exited
2019-04-12T09:58:09.172-0700 [DEBUG] plugin: plugin process exited: path=/Users/user/.terraform.d/plugins/terraform-provider-null_v2.1.0 pid=3835
2019-04-12T09:58:09.172-0700 [DEBUG] plugin: plugin exited
system to review the proposed changes, make any necessary adjustments, and
then commit.
2019-04-12T09:58:09.172-0700 [DEBUG] plugin: plugin process exited: path=/path/to/terraform pid=3840
2019-04-12T09:58:09.172-0700 [DEBUG] plugin: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment