Skip to content

Instantly share code, notes, and snippets.

@bluehawk27
Created June 26, 2018 23:15
Show Gist options
  • Save bluehawk27/131fd62baa401d31a744131bc0959601 to your computer and use it in GitHub Desktop.
Save bluehawk27/131fd62baa401d31a744131bc0959601 to your computer and use it in GitHub Desktop.
terraform codebuild crash
Error: Error applying plan:
2 error(s) occurred:
* module.codebuild.aws_codebuild_project.default: 1 error(s) occurred:
* aws_codebuild_project.default: unexpected EOF
* module.codebuild.aws_iam_role_policy_attachment.default: 1 error(s) occurred:
* aws_iam_role_policy_attachment.default: unexpected EOF
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.
panic: interface conversion: interface {} is nil, not map[string]interface {}
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4:
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: goroutine 410 [running]:
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: github.com/terraform-providers/terraform-provider-aws/aws.expandCodeBuildVpcConfig(0xc4209b4d80, 0x1, 0x1, 0x3061e40)
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codebuild_project.go:492 +0x328
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsCodeBuildProjectCreate(0xc420850070, 0x3530360, 0xc4200b6000, 0xc420850070, 0x0)
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codebuild_project.go:344 +0x52e
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc4206338f0, 0xc4205ca0a0, 0xc420568140, 0x3530360, 0xc4200b6000, 0x1, 0xc420865f50, 0xc42016d008)
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:227 +0x364
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc4201dc000, 0xc4205ca050, 0xc4205ca0a0, 0xc420568140, 0x6892000, 0x0, 0xc4204f5b28)
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:283 +0xa4
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Apply(0xc420620aa0, 0xc420568060, 0xc4209b41a0, 0x0, 0x0)
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:527 +0x57
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: reflect.Value.call(0xc42005a9c0, 0xc4203c46b8, 0x13, 0x399fe6e, 0x4, 0xc42039ef20, 0x3, 0x3, 0x0, 0x1, ...)
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: /usr/local/go/src/reflect/value.go:434 +0x905
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: reflect.Value.Call(0xc42005a9c0, 0xc4203c46b8, 0x13, 0xc420031720, 0x3, 0x3, 0x580e640, 0xc420a94cc0, 0xc4201b4c80)
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: /usr/local/go/src/reflect/value.go:302 +0xa4
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: net/rpc.(*service).call(0xc420858340, 0xc4208980a0, 0xc420530700, 0xc4201bc180, 0xc420621000, 0x30199c0, 0xc420568060, 0x16, 0x3019a00, 0xc4209b41a0, ...)
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: /usr/local/go/src/net/rpc/server.go:381 +0x142
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: created by net/rpc.(*Server).ServeCodec
2018-06-26T16:08:13.952-0700 [DEBUG] plugin.terraform-provider-aws_v1.24.0_x4: /usr/local/go/src/net/rpc/server.go:475 +0x36b
2018/06/26 16:08:13 [TRACE] root.codebuild: eval: *terraform.EvalWriteState
2018/06/26 16:08:13 [TRACE] root.codebuild: eval: *terraform.EvalApplyProvisioners
2018/06/26 16:08:13 [TRACE] root.codebuild: eval: *terraform.EvalIf
2018/06/26 16:08:13 [TRACE] root.codebuild: eval: *terraform.EvalWriteState
2018/06/26 16:08:13 [TRACE] root.codebuild: eval: *terraform.EvalWriteState
2018/06/26 16:08:13 [TRACE] root.codebuild: eval: *terraform.EvalApplyProvisioners
2018/06/26 16:08:13 [TRACE] root.codebuild: eval: *terraform.EvalWriteDiff
2018/06/26 16:08:13 [TRACE] root.codebuild: eval: *terraform.EvalIf
2018/06/26 16:08:13 [TRACE] root.codebuild: eval: *terraform.EvalWriteState
2018/06/26 16:08:13 [TRACE] root.codebuild: eval: *terraform.EvalApplyPost
2018/06/26 16:08:13 [TRACE] root.codebuild: eval: *terraform.EvalWriteDiff
2018/06/26 16:08:13 [TRACE] root.codebuild: eval: *terraform.EvalApplyPost
2018/06/26 16:08:13 [ERROR] root.codebuild: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:
* aws_iam_role_policy_attachment.default: unexpected EOF
2018/06/26 16:08:13 [ERROR] root.codebuild: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:
* aws_codebuild_project.default: unexpected EOF
2018/06/26 16:08:13 [ERROR] root.codebuild: eval: *terraform.EvalSequence, err: 1 error(s) occurred:
* aws_codebuild_project.default: unexpected EOF
2018/06/26 16:08:13 [ERROR] root.codebuild: eval: *terraform.EvalSequence, err: 1 error(s) occurred:
* aws_iam_role_policy_attachment.default: unexpected EOF
2018/06/26 16:08:13 [TRACE] [walkApply] Exiting eval tree: module.codebuild.aws_codebuild_project.default
2018/06/26 16:08:13 [TRACE] [walkApply] Exiting eval tree: module.codebuild.aws_iam_role_policy_attachment.default
2018/06/26 16:08:13 [TRACE] dag/walk: upstream errored, not walking "module.codebuild.output.project_id"
2018/06/26 16:08:13 [TRACE] dag/walk: upstream errored, not walking "module.codebuild.output.project_name"
2018/06/26 16:08:13 [TRACE] dag/walk: upstream errored, not walking "provider.aws (close)"
2018/06/26 16:08:13 [TRACE] dag/walk: upstream errored, not walking "meta.count-boundary (count boundary fixup)"
2018/06/26 16:08:13 [TRACE] dag/walk: upstream errored, not walking "root"
2018-06-26T16:08:13.955-0700 [DEBUG] plugin: plugin process exited: path=/Users/alberto.villacorta/Dev/terraform/domo/dev/.terraform/plugins/darwin_amd64/terraform-provider-aws_v1.24.0_x4
2018/06/26 16:08:13 [TRACE] Preserving existing state lineage "f8578587-43c8-216d-fef0-2be6e094e3d9"
2018/06/26 16:08:13 [TRACE] Preserving existing state lineage "f8578587-43c8-216d-fef0-2be6e094e3d9"
2018/06/26 16:08:13 [TRACE] Preserving existing state lineage "f8578587-43c8-216d-fef0-2be6e094e3d9"
2018/06/26 16:08:13 [TRACE] Preserving existing state lineage "f8578587-43c8-216d-fef0-2be6e094e3d9"
2018/06/26 16:08:13 [DEBUG] plugin: waiting for all plugin processes to complete...
2018-06-26T16:08:13.963-0700 [WARN ] plugin: error closing client during Kill: err="connection is shut down"
2018-06-26T16:08:13.965-0700 [DEBUG] plugin: plugin process exited: path=/Users/alberto.villacorta/Dev/terraform/domo/dev/.terraform/plugins/darwin_amd64/terraform-provider-null_v1.0.0_x4
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform[1] so that we can fix this.
When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.
[1]: https://github.com/hashicorp/terraform/issues
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment