Skip to content

Instantly share code, notes, and snippets.

@scalp42
Created March 21, 2019 18:35
Show Gist options
  • Save scalp42/cd7644708890dfed55080c6d870a8b1f to your computer and use it in GitHub Desktop.
Save scalp42/cd7644708890dfed55080c6d870a8b1f to your computer and use it in GitHub Desktop.
$> TF_LOG=debug terraform apply terraform
2019/03/21 11:35:01 [INFO] Terraform version: 0.11.13
2019/03/21 11:35:01 [INFO] Go runtime version: go1.12
2019/03/21 11:35:01 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.13/bin/terraform", "apply", "terraform"}
2019/03/21 11:35:01 [DEBUG] Attempting to open CLI config file: /Users/scalp/.terraformrc
2019/03/21 11:35:01 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/03/21 11:35:01 [INFO] CLI command args: []string{"apply", "terraform"}
2019/03/21 11:35:01 [INFO] command: initializing local backend from plan (not set)
2019/03/21 11:35:01 [DEBUG] checking for provider in "."
2019/03/21 11:35:01 [DEBUG] checking for provider in "/usr/local/Cellar/terraform/0.11.13/bin"
2019/03/21 11:35:01 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2019/03/21 11:35:01 [DEBUG] found provider "terraform-provider-aws_v2.2.0_x4"
2019/03/21 11:35:01 [DEBUG] found valid plugin: "aws", "2.2.0", "/Users/scalp/changeme/terraform/configs/bridge/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.2.0_x4"
2019/03/21 11:35:01 [DEBUG] checking for provisioner in "."
2019/03/21 11:35:01 [DEBUG] checking for provisioner in "/usr/local/Cellar/terraform/0.11.13/bin"
2019/03/21 11:35:01 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2019/03/21 11:35:01 [INFO] command: backend initialized: *local.Local
2019/03/21 11:35:01 [DEBUG] checking for provider in "."
2019/03/21 11:35:01 [DEBUG] checking for provider in "/usr/local/Cellar/terraform/0.11.13/bin"
2019/03/21 11:35:01 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2019/03/21 11:35:01 [DEBUG] found provider "terraform-provider-aws_v2.2.0_x4"
2019/03/21 11:35:01 [DEBUG] found valid plugin: "aws", "2.2.0", "/Users/scalp/changeme/terraform/configs/bridge/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.2.0_x4"
2019/03/21 11:35:01 [DEBUG] checking for provisioner in "."
2019/03/21 11:35:01 [DEBUG] checking for provisioner in "/usr/local/Cellar/terraform/0.11.13/bin"
2019/03/21 11:35:01 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2019/03/21 11:35:01 [INFO] backend/local: starting Apply operation
2019/03/21 11:35:01 [INFO] terraform: building graph: GraphTypeApply
cketVersioning\",\n \"s3:GetBucketLocation\"\n ],\n \"Resource\": \"arn:aws:s3:::changeme-terraform\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::099991368923:root\"\n }\n }\n ]\n}", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "region":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "request_payer":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tags.%":*terraform.ResourceAttrDiff{Old:"", New:"2", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tags.Name":*terraform.ResourceAttrDiff{Old:"", New:"changeme-terraform", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tags.terraform":*terraform.ResourceAttrDiff{Old:"", New:"true", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "versioning.#":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "website_domain":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "website_endpoint":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}}, Destroy:false, DestroyDeposed:false, DestroyTainted:false, Meta:map[string]interface {}(nil)}
2019/03/21 11:35:01 [DEBUG] Resource state not found for "aws_s3_bucket.changeme-terraform": aws_s3_bucket.changeme-terraform
2019/03/21 11:35:01 [TRACE] Graph after step *terraform.AttachStateTransformer:
aws_s3_bucket.changeme-terraform - *terraform.NodeApplyableResource
2019/03/21 11:35:01 [DEBUG] resource aws_s3_bucket.changeme-terraform using provider provider.aws
2019/03/21 11:35:01 [DEBUG] ReferenceTransformer: "aws_s3_bucket.changeme-terraform" references: []
2019/03/21 11:35:01 [DEBUG] ReferenceTransformer: "provider.aws" references: []
2019/03/21 11:35:01 [DEBUG] Starting graph walk: walkApply
2019-03-21T11:35:01.863-0700 [DEBUG] plugin: starting plugin: path=/Users/scalp/changeme/terraform/configs/bridge/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.2.0_x4 args=[/Users/scalp/changeme/terraform/configs/bridge/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.2.0_x4]
2019-03-21T11:35:02.875-0700 [DEBUG] plugin: waiting for RPC address: path=/Users/scalp/changeme/terraform/configs/bridge/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.2.0_x4
2019-03-21T11:35:02.885-0700 [DEBUG] plugin.terraform-provider-aws_v2.2.0_x4: plugin address: timestamp=2019-03-21T11:35:02.885-0700 address=/var/folders/fy/n4bxs7tn3vb093pc0d8y0wl80000gn/T/plugin574345130 network=unix
2019-03-21T11:35:02.893-0700 [DEBUG] plugin.terraform-provider-aws_v2.2.0_x4: 2019/03/21 11:35:02 [INFO] No assume_role block read from configuration
2019/03/21 11:35:02 [ERROR] root: eval: *terraform.EvalConfigProvider, err: Invalid AWS Region:
2019/03/21 11:35:02 [ERROR] root: eval: *terraform.EvalSequence, err: Invalid AWS Region:
2019/03/21 11:35:02 [ERROR] root: eval: *terraform.EvalOpFilter, err: Invalid AWS Region:
2019/03/21 11:35:02 [ERROR] root: eval: *terraform.EvalSequence, err: Invalid AWS Region:
2019/03/21 11:35:02 [TRACE] [walkApply] Exiting eval tree: provider.aws
2019/03/21 11:35:02 [DEBUG] plugin: waiting for all plugin processes to complete...
Error: Error applying plan:
1 error(s) occurred:
* provider.aws: Invalid AWS Region:
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
2019-03-21T11:35:02.903-0700 [DEBUG] plugin.terraform-provider-aws_v2.2.0_x4: 2019/03/21 11:35:02 [ERR] plugin: plugin server: accept unix /var/folders/fy/n4bxs7tn3vb093pc0d8y0wl80000gn/T/plugin574345130: use of closed network connection
2019-03-21T11:35:02.904-0700 [DEBUG] plugin: plugin process exited: path=/Users/scalp/changeme/terraform/configs/bridge/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.2.0_x4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment