Skip to content

Instantly share code, notes, and snippets.

@srhaber
Last active March 20, 2017 18:12
Show Gist options
  • Save srhaber/0c356008b1b782466a9e6e4368d5e312 to your computer and use it in GitHub Desktop.
Save srhaber/0c356008b1b782466a9e6e4368d5e312 to your computer and use it in GitHub Desktop.
Executing: docker-compose run --rm terraform plan -out plan
2017/03/20 18:11:48 [INFO] Terraform version: 0.9.1 7c25ef851bd26f720e749983597b36b17061e3ca
2017/03/20 18:11:48 [INFO] Go runtime version: go1.8
2017/03/20 18:11:48 [INFO] CLI args: []string{"/bin/terraform", "plan", "-out", "plan"}
2017/03/20 18:11:48 [DEBUG] Detected home directory from env var: /root
2017/03/20 18:11:48 [DEBUG] Detected home directory from env var: /root
2017/03/20 18:11:48 [DEBUG] Attempting to open CLI config file: /root/.terraformrc
2017/03/20 18:11:48 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/03/20 18:11:48 [INFO] CLI command args: []string{"plan", "-out", "plan"}
2017/03/20 18:11:48 [DEBUG] Detected home directory from env var: /root
2017/03/20 18:11:48 [DEBUG] command: loading backend config file: /var/lib/terraform
2017/03/20 18:11:48 [DEBUG] command: no data state file found for backend config
2017/03/20 18:11:48 [DEBUG] New state was assigned lineage "a17007f3-d699-4591-a9c5-c56624656aba"
2017/03/20 18:11:48 [INFO] command: backend initialized: <nil>
2017/03/20 18:11:48 [INFO] command: backend <nil> is not enhanced, wrapping in local
2017/03/20 18:11:48 [INFO] backend/local: starting Plan operation
2017/03/20 18:11:48 [DEBUG] New state was assigned lineage "1a0a35f5-4869-4af0-92ec-b5d950fefdce"
2017/03/20 18:11:48 [INFO] terraform: building graph: GraphTypeInput
2017/03/20 18:11:48 [DEBUG] Resource state not found for "aws_eip.eip": aws_eip.eip
2017/03/20 18:11:48 [DEBUG] Resource state not found for "aws_security_group.allow_all": aws_security_group.allow_all
2017/03/20 18:11:48 [DEBUG] ReferenceTransformer: "aws_eip.eip" references: []
2017/03/20 18:11:48 [DEBUG] ReferenceTransformer: "aws_security_group.allow_all" references: [var.cidr_block aws_eip.eip]
2017/03/20 18:11:48 [DEBUG] ReferenceTransformer: "var.cidr_block" references: []
2017/03/20 18:11:48 [DEBUG] ReferenceTransformer: "provider.aws" references: []
2017/03/20 18:11:48 [DEBUG] Starting graph walk: walkInput
2017/03/20 18:11:48 [DEBUG] dag/walk: added new vertex: "var.cidr_block"
2017/03/20 18:11:48 [DEBUG] dag/walk: added new vertex: "provider.aws"
2017/03/20 18:11:48 [DEBUG] dag/walk: added new vertex: "aws_eip.eip"
2017/03/20 18:11:48 [DEBUG] dag/walk: added new vertex: "aws_security_group.allow_all"
2017/03/20 18:11:48 [DEBUG] dag/walk: added edge: "aws_eip.eip" waiting on "provider.aws"
2017/03/20 18:11:48 [DEBUG] dag/walk: added edge: "aws_security_group.allow_all" waiting on "var.cidr_block"
2017/03/20 18:11:48 [DEBUG] dag/walk: added edge: "aws_security_group.allow_all" waiting on "aws_eip.eip"
2017/03/20 18:11:48 [DEBUG] dag/walk: dependencies changed for "aws_eip.eip", sending new deps
2017/03/20 18:11:48 [DEBUG] dag/walk: dependencies changed for "aws_security_group.allow_all", sending new deps
2017/03/20 18:11:48 [DEBUG] dag/walk: walking "var.cidr_block"
2017/03/20 18:11:48 [DEBUG] vertex 'root.var.cidr_block': walking
2017/03/20 18:11:48 [DEBUG] dag/walk: walking "provider.aws"
2017/03/20 18:11:48 [DEBUG] vertex 'root.provider.aws': walking
2017/03/20 18:11:48 [DEBUG] vertex 'root.provider.aws': evaluating
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalSequence
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalInitProvider
2017/03/20 18:11:48 [DEBUG] plugin: starting plugin: /bin/terraform []string{"/bin/terraform", "internal-plugin", "provider", "aws"}
2017/03/20 18:11:48 [DEBUG] plugin: waiting for RPC address for: /bin/terraform
2017/03/20 18:11:48 [DEBUG] plugin: terraform: 2017/03/20 18:11:48 [INFO] Terraform version: 0.9.1 7c25ef851bd26f720e749983597b36b17061e3ca
2017/03/20 18:11:48 [DEBUG] plugin: terraform: 2017/03/20 18:11:48 [INFO] Go runtime version: go1.8
2017/03/20 18:11:48 [DEBUG] plugin: terraform: 2017/03/20 18:11:48 [INFO] CLI args: []string{"/bin/terraform", "internal-plugin", "provider", "aws"}
2017/03/20 18:11:48 [DEBUG] plugin: terraform: 2017/03/20 18:11:48 [DEBUG] Detected home directory from env var: /root
2017/03/20 18:11:48 [DEBUG] plugin: terraform: 2017/03/20 18:11:48 [DEBUG] Detected home directory from env var: /root
2017/03/20 18:11:48 [DEBUG] plugin: terraform: 2017/03/20 18:11:48 [DEBUG] Attempting to open CLI config file: /root/.terraformrc
2017/03/20 18:11:48 [DEBUG] plugin: terraform: 2017/03/20 18:11:48 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/03/20 18:11:48 [DEBUG] plugin: terraform: 2017/03/20 18:11:48 [INFO] CLI command args: []string{"internal-plugin", "provider", "aws"}
2017/03/20 18:11:48 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/20 18:11:48 [INFO] Starting provider plugin aws
2017/03/20 18:11:48 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/20 18:11:48 [DEBUG] plugin: plugin address: unix /tmp/plugin445055646
2017/03/20 18:11:48 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/20 18:11:48 [DEBUG] Detected home directory from env var: /root
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalOpFilter
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalSequence
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalGetProvider
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalInterpolate
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalBuildProviderConfig
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalInputProvider
2017/03/20 18:11:48 [DEBUG] root: eval: terraform.EvalNoop
2017/03/20 18:11:48 [DEBUG] root: eval: terraform.EvalNoop
2017/03/20 18:11:48 [DEBUG] root: eval: terraform.EvalNoop
2017/03/20 18:11:48 [TRACE] [walkInput] Exiting eval tree: provider.aws
2017/03/20 18:11:48 [DEBUG] dag/walk: walking "aws_eip.eip"
2017/03/20 18:11:48 [DEBUG] vertex 'root.aws_eip.eip': walking
2017/03/20 18:11:48 [DEBUG] dag/walk: walking "aws_security_group.allow_all"
2017/03/20 18:11:48 [DEBUG] vertex 'root.aws_security_group.allow_all': walking
2017/03/20 18:11:48 [INFO] terraform: building graph: GraphTypeValidate
2017/03/20 18:11:48 [TRACE] ConfigTransformer: Starting for path: []
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.ConfigTransformer:
aws_eip.eip - *terraform.NodeValidatableResource
aws_security_group.allow_all - *terraform.NodeValidatableResource
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.OutputTransformer:
aws_eip.eip - *terraform.NodeValidatableResource
aws_security_group.allow_all - *terraform.NodeValidatableResource
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.OrphanResourceTransformer:
aws_eip.eip - *terraform.NodeValidatableResource
aws_security_group.allow_all - *terraform.NodeValidatableResource
2017/03/20 18:11:48 [TRACE] AttachResourceConfigTransformer: Beginning...
2017/03/20 18:11:48 [TRACE] AttachResourceConfigTransformer: Attach resource config request: aws_eip.eip
2017/03/20 18:11:48 [TRACE] Attaching resource config: &config.Resource{Mode:0, Name:"eip", Type:"aws_eip", RawCount:(*config.RawConfig)(0xc4202129c0), RawConfig:(*config.RawConfig)(0xc420212840), Provisioners:[]*config.Provisioner(nil), Provider:"", DependsOn:[]string(nil), Lifecycle:config.ResourceLifecycle{CreateBeforeDestroy:false, PreventDestroy:false, IgnoreChanges:[]string(nil)}}
2017/03/20 18:11:48 [TRACE] AttachResourceConfigTransformer: Attach resource config request: aws_security_group.allow_all
2017/03/20 18:11:48 [TRACE] Attaching resource config: &config.Resource{Mode:0, Name:"allow_all", Type:"aws_security_group", RawCount:(*config.RawConfig)(0xc420213680), RawConfig:(*config.RawConfig)(0xc420212b40), Provisioners:[]*config.Provisioner(nil), Provider:"", DependsOn:[]string(nil), Lifecycle:config.ResourceLifecycle{CreateBeforeDestroy:false, PreventDestroy:false, IgnoreChanges:[]string(nil)}}
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.AttachResourceConfigTransformer:
aws_eip.eip - *terraform.NodeValidatableResource
aws_security_group.allow_all - *terraform.NodeValidatableResource
2017/03/20 18:11:48 [DEBUG] Resource state not found for "aws_security_group.allow_all": aws_security_group.allow_all
2017/03/20 18:11:48 [DEBUG] Resource state not found for "aws_eip.eip": aws_eip.eip
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.AttachStateTransformer:
aws_eip.eip - *terraform.NodeValidatableResource
aws_security_group.allow_all - *terraform.NodeValidatableResource
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.RootVariableTransformer:
aws_eip.eip - *terraform.NodeValidatableResource
aws_security_group.allow_all - *terraform.NodeValidatableResource
var.cidr_block - *terraform.NodeRootVariable
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.MissingProviderTransformer:
aws_eip.eip - *terraform.NodeValidatableResource
aws_security_group.allow_all - *terraform.NodeValidatableResource
provider.aws - *terraform.NodeApplyableProvider
var.cidr_block - *terraform.NodeRootVariable
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.ProviderTransformer:
aws_eip.eip - *terraform.NodeValidatableResource
provider.aws - *terraform.NodeApplyableProvider
aws_security_group.allow_all - *terraform.NodeValidatableResource
provider.aws - *terraform.NodeApplyableProvider
provider.aws - *terraform.NodeApplyableProvider
var.cidr_block - *terraform.NodeRootVariable
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.DisableProviderTransformer:
aws_eip.eip - *terraform.NodeValidatableResource
provider.aws - *terraform.NodeApplyableProvider
aws_security_group.allow_all - *terrafoeTransformer: "provider.aws" references: []
2017/03/20 18:11:48 [DEBUG] ReferenceTransformer: "aws_eip.eip" references: []
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.ReferenceTransformer:
aws_eip.eip - *terraform.NodeValidatableResource
provider.aws - *terraform.NodeApplyableProvider
aws_security_group.allow_all - *terraform.NodeValidatableResource
aws_eip.eip - *terraform.NodeValidatableResource
provider.aws - *terraform.NodeApplyableProvider
var.cidr_block - *terraform.NodeRootVariable
provider.aws - *terraform.NodeApplyableProvider
var.cidr_block - *terraform.NodeRootVariable
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.TargetsTransformer:
aws_eip.eip - *terraform.NodeValidatableResource
provider.aws - *terraform.NodeApplyableProvider
aws_security_group.allow_all - *terraform.NodeValidatableResource
aws_eip.eip - *terraform.NodeValidatableResource
provider.aws - *terraform.NodeApplyableProvider
var.cidr_block - *terraform.NodeRootVariable
provider.aws - *terraform.NodeApplyableProvider
var.cidr_block - *terraform.NodeRootVariable
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.RootTransformer:
aws_eip.eip - *terraform.NodeValidatableResource
provider.aws - *terraform.NodeApplyableProvider
aws_security_group.allow_all - *terraform.NodeValidatableResource
aws_eip.eip - *terraform.NodeValidatableResource
provider.aws - *terraform.NodeApplyableProvider
var.cidr_block - *terraform.NodeRootVariable
provider.aws - *terraform.NodeApplyableProvider
var.cidr_block - *terraform.NodeRootVariable
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.TransitiveReductionTransformer:
aws_eip.eip - *terraform.NodeValidatableResource
provider.aws - *terraform.NodeApplyableProvider
aws_security_group.allow_all - *terraform.NodeValidatableResource
aws_eip.eip - *terraform.NodeValidatableResource
var.cidr_block - *terraform.NodeRootVariable
provider.aws - *terraform.NodeApplyableProvider
var.cidr_block - *terraform.NodeRootVariable
2017/03/20 18:11:48 [DEBUG] Starting graph walk: walkValidate
2017/03/20 18:11:48 [DEBUG] dag/walk: added new vertex: "var.cidr_block"
2017/03/20 18:11:48 [DEBUG] dag/walk: added new vertex: "provider.aws"
2017/03/20 18:11:48 [DEBUG] dag/walk: added new vertex: "aws_eip.eip"
2017/03/20 18:11:48 [DEBUG] dag/walk: added new vertex: "aws_security_group.allow_all"
2017/03/20 18:11:48 [DEBUG] dag/walk: added edge: "aws_eip.eip" waiting on "provider.aws"
2017/03/20 18:11:48 [DEBUG] dag/walk: added edge: "aws_security_group.allow_all" waiting on "var.cidr_block"
2017/03/20 18:11:48 [DEBUG] dag/walk: added edge: "aws_security_group.allow_all" waiting on "aws_eip.eip"
2017/03/20 18:11:48 [DEBUG] dag/walk: dependencies changed for "aws_eip.eip", sending new deps
2017/03/20 18:11:48 [DEBUG] dag/walk: dependencies changed for "aws_security_group.allow_all", sending new deps
2017/03/20 18:11:48 [DEBUG] dag/walk: walking "provider.aws"
2017/03/20 18:11:48 [DEBUG] vertex 'root.provider.aws': walking
2017/03/20 18:11:48 [DEBUG] vertex 'root.provider.aws': evaluating
2017/03/20 18:11:48 [TRACE] [walkValidate] Entering eval tree: provider.aws
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalSequence
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalInitProvider
2017/03/20 18:11:48 [DEBUG] dag/walk: walking "var.cidr_block"
2017/03/20 18:11:48 [DEBUG] vertex 'root.var.cidr_block': walking
2017/03/20 18:11:48 [DEBUG] root: eval: terraform.EvalNoop
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalOpFilter
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalSequence
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalGetProvider
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalInterpolate
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalBuildProviderConfig
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalValidateProvider
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalSetProviderConfig
2017/03/20 18:11:48 [DEBUG] root: eval: terraform.EvalNoop
2017/03/20 18:11:48 [DEBUG] root: eval: terraform.EvalNoop
2017/03/20 18:11:48 [TRACE] [walkValidate] Exiting eval tree: provider.aws
2017/03/20 18:11:48 [DEBUG] dag/walk: walking "aws_eip.eip"
2017/03/20 18:11:48 [DEBUG] vertex 'root.aws_eip.eip': walking
2017/03/20 18:11:48 [DEBUG] vertex 'root.aws_eip.eip': evaluating
2017/03/20 18:11:48 [TRACE] [walkValidate] Entering eval tree: aws_eip.eip
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalSequence
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalInterpolate
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalIf
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalValidateCount
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalCountFixZeroOneBoundary
2017/03/20 18:11:48 [TRACE] [walkValidate] Exiting eval tree: aws_eip.eip
2017/03/20 18:11:48 [DEBUG] vertex 'root.aws_eip.eip': expanding/walking dynamic subgraph
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.ResourceCountTransformer:
aws_eip.eip - *terraform.NodeValidatableResourceInstance
2017/03/20 18:11:48 [DEBUG] Resource state not found for "aws_eip.eip": aws_eip.eip
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.AttachStateTransformer:
aws_eip.eip - *terraform.NodeValidatableResourceInstance
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.TargetsTransformer:
aws_eip.eip - *terraform.NodeValidatableResourceInstance
2017/03/20 18:11:48 [DEBUG] ReferenceTransformer: "aws_eip.eip" references: []
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.ReferenceTransformer:
aws_eip.eip - *terraform.NodeValidatableResourceInstance
2017/03/20 18:11:48 [TRACE] Graph after step *terraform.RootTransformer:
aws_eip.eip - *terraform.NodeValidatableResourceInstance
2017/03/20 18:11:48 [DEBUG] dag/walk: added new vertex: "aws_eip.eip"
2017/03/20 18:11:48 [DEBUG] dag/walk: walking "aws_eip.eip"
2017/03/20 18:11:48 [DEBUG] vertex 'root.aws_eip.eip': walking
2017/03/20 18:11:48 [DEBUG] vertex 'root.aws_eip.eip': evaluating
2017/03/20 18:11:48 [TRACE] [walkValidate] Entering eval tree: aws_eip.eip
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalSequence
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalValidateResourceSelfRef
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalGetProvider
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalInterpolate
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalValidateResource
ing "aws_security_group.allow_all"
2017/03/20 18:11:48 [DEBUG] vertex 'root.aws_security_group.allow_all': walking
2017/03/20 18:11:48 [DEBUG] vertex 'root.aws_security_group.allow_all': evaluating
2017/03/20 18:11:48 [TRACE] [walkValidate] Entering eval tree: aws_security_group.allow_all
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalSequence
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalValidateResourceSelfRef
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalGetProvider
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalInterpolate
2017/03/20 18:11:48 [DEBUG] root: eval: *terraform.EvalValidateResource
2017/03/20 18:11:48 [ERROR] root: eval: *terraform.EvalValidateResource, err: Warnings: []. Errors: ["ingress.0.cidr_blocks.1" must contain a valid CIDR, got error parsing: invalid CIDR address: ${var.cidr_block}]
2017/03/20 18:11:48 [ERROR] root: eval: *terraform.EvalSequence, err: Warnings: []. Errors: ["ingress.0.cidr_blocks.1" must contain a valid CIDR, got error parsing: invalid CIDR address: ${var.cidr_block}]
1 error(s) occurred:
* aws_security_group.allow_all: "ingress.0.cidr_blocks.1" must contain a valid CIDR, got error parsing: invalid CIDR address: ${var.cidr_block}
2017/03/20 18:11:48 [DEBUG] plugin: waiting for all plugin processes to complete...
2017/03/20 18:11:48 [DEBUG] plugin: terraform: aws-provider (internal) 2017/03/20 18:11:48 [DEBUG] plugin: waiting for all plugin processes to complete...
2017/03/20 18:11:48 [DEBUG] plugin: /bin/terraform: plugin process exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment