{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/3071","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/3071/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/3071/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/3071/events","html_url":"https://github.com/terraform-providers/terraform-provider-aws/issues/3071","id":290067730,"number":3071,"title":"aws_kinesis_firehose_delivery_stream: Crash","user":{"login":"binarydud","id":1635,"avatar_url":"https://avatars3.githubusercontent.com/u/1635?v=4","gravatar_id":"","url":"https://api.github.com/users/binarydud","html_url":"https://github.com/binarydud","followers_url":"https://api.github.com/users/binarydud/followers","following_url":"https://api.github.com/users/binarydud/following{/other_user}","gists_url":"https://api.github.com/users/binarydud/gists{/gist_id}","starred_url":"https://api.github.com/users/binarydud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarydud/subscriptions","organizations_url":"https://api.github.com/users/binarydud/orgs","repos_url":"https://api.github.com/users/binarydud/repos","events_url":"https://api.github.com/users/binarydud/events{/privacy}","received_events_url":"https://api.github.com/users/binarydud/received_events","type":"User","site_admin":false},"labels":[{"id":620316239,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":620316275,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/crash","name":"crash","color":"e11d21","default":false},{"id":801971587,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/service/firehose","name":"service/firehose","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/milestones/10","html_url":"https://github.com/terraform-providers/terraform-provider-aws/milestone/10","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/milestones/10/labels","id":3039705,"number":10,"title":"v1.8.0","description":"","creator":{"login":"radeksimko","id":287584,"avatar_url":"https://avatars1.githubusercontent.com/u/287584?v=4","gravatar_id":"","url":"https://api.github.com/users/radeksimko","html_url":"https://github.com/radeksimko","followers_url":"https://api.github.com/users/radeksimko/followers","following_url":"https://api.github.com/users/radeksimko/following{/other_user}","gists_url":"https://api.github.com/users/radeksimko/gists{/gist_id}","starred_url":"https://api.github.com/users/radeksimko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radeksimko/subscriptions","organizations_url":"https://api.github.com/users/radeksimko/orgs","repos_url":"https://api.github.com/users/radeksimko/repos","events_url":"https://api.github.com/users/radeksimko/events{/privacy}","received_events_url":"https://api.github.com/users/radeksimko/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":53,"state":"closed","created_at":"2018-01-16T16:36:36Z","updated_at":"2018-01-31T11:35:34Z","due_on":null,"closed_at":"2018-01-31T11:35:34Z"},"comments":7,"created_at":"2018-01-19T18:33:56Z","updated_at":"2018-02-01T15:56:26Z","closed_at":"2018-01-22T13:45:23Z","author_association":"NONE","body":"### Terraform Version\r\n1.7.1\r\n\r\n### Affected Resource(s)\r\naws_kinesis_firehose_delivery_stream\r\n\r\n### Terraform Configuration Files\r\n```hcl\r\nresource \"aws_kinesis_firehose_delivery_stream\" \"firehose_delivery_stream\" {\r\n  name = \"firehose-delivery-stream\"\r\n  destination = \"s3\"\r\n  s3_configuration {\r\n    role_arn = \"${aws_iam_role.firehose_role.arn}\"\r\n    bucket_arn = \"${aws_s3_bucket.firehose_delivery_bucket.arn}\"\r\n    buffer_size = 5\r\n    buffer_interval = 300\r\n    compression_format = \"GZIP\"\r\n  }\r\n}\r\n```\r\n\r\n### Panic Output\r\n```\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n2018-01-19T11:04:27.699-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x27c986f]\r\n2018-01-19T11:04:27.699-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4:\r\n2018-01-19T11:04:27.699-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: goroutine 7792 [running]:\r\n2018-01-19T11:04:27.699-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: github.com/terraform-providers/terraform-provider-aws/aws.flattenFirehoseS3Configuration(0xc42388c250, 0xc42388c260, 0x0, 0xc42388c270, 0xc42388c280, 0x0, 0xc42388c2a0, 0x151927d, 0x3, 0x348f99b)\r\n2018-01-19T11:04:27.699-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_firehose_delivery_stream.go:193 +0x16f\r\n2018-01-19T11:04:27.699-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: github.com/terraform-providers/terraform-provider-aws/aws.flattenKinesisFirehoseDeliveryStream(0xc4218f6f50, 0xc420a872c0, 0xc420e04158, 0x0)\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_firehose_delivery_stream.go:304 +0x151c\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsKinesisFirehoseDeliveryStreamRead(0xc4218f6f50, 0x3082ca0, 0xc4249c0a00, 0xc4218f6f50, 0x0)\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_firehose_delivery_stream.go:1297 +0x323\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0xc424b70460, 0xc421d925a0, 0x3082ca0, 0xc4249c0a00, 0xc4217bc088, 0xc42557ea01, 0x80001082152)\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:354 +0x17e\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Refresh(0xc4226d8310, 0xc421d92550, 0xc421d925a0, 0x5d4a8b0, 0x0, 0x2a5)\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:308 +0x9a\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Refresh(0xc42057ef20, 0xc425ae1870, 0xc425ae1960, 0x0, 0x0)\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:549 +0x4e\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: reflect.Value.call(0xc42031ac60, 0xc4215a0998, 0x13, 0x3469695, 0x4, 0xc42557ef20, 0x3, 0x3, 0x0, 0x0, ...)\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: \t/usr/local/go/src/reflect/value.go:434 +0x905\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: reflect.Value.Call(0xc42031ac60, 0xc4215a0998, 0x13, 0xc4214cf720, 0x3, 0x3, 0xc421ba5f80, 0x33a6b80, 0xc4214cf750)\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: \t/usr/local/go/src/reflect/value.go:302 +0xa4\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: net/rpc.(*service).call(0xc420f5d440, 0xc42364b770, 0xc42017ea08, 0xc420633c00, 0xc423fb7ba0, 0x2c0dc40, 0xc425ae1870, 0x16, 0x2c0dc80, 0xc425ae1960, ...)\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: \t/usr/local/go/src/net/rpc/server.go:381 +0x142\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: created by net/rpc.(*Server).ServeCodec\r\n2018-01-19T11:04:27.700-0700 [DEBUG] plugin.terraform-provider-aws_v1.7.1_x4: \t/usr/local/go/src/net/rpc/server.go:475 +0x36b\r\n```\r\n\r\n### Expected Behavior\r\nplan file output\r\n\r\n### Actual Behavior\r\nPanic Crash\r\n\r\n### Steps to Reproduce\r\nPlease list the steps required to reproduce the issue, for example:\r\n1. upgrade provider to 1.7.1\r\n1. `terraform plan`\r\n\r\n\r\n### References\r\n- GH-3005\r\n"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/comments/362310134","html_url":"https://github.com/terraform-providers/terraform-provider-aws/issues/3071#issuecomment-362310134","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/3071","id":362310134,"user":{"login":"favoretti","id":805046,"avatar_url":"https://avatars1.githubusercontent.com/u/805046?v=4","gravatar_id":"","url":"https://api.github.com/users/favoretti","html_url":"https://github.com/favoretti","followers_url":"https://api.github.com/users/favoretti/followers","following_url":"https://api.github.com/users/favoretti/following{/other_user}","gists_url":"https://api.github.com/users/favoretti/gists{/gist_id}","starred_url":"https://api.github.com/users/favoretti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/favoretti/subscriptions","organizations_url":"https://api.github.com/users/favoretti/orgs","repos_url":"https://api.github.com/users/favoretti/repos","events_url":"https://api.github.com/users/favoretti/events{/privacy}","received_events_url":"https://api.github.com/users/favoretti/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T15:56:26Z","updated_at":"2018-02-01T15:56:26Z","author_association":"NONE","body":"```\r\nterraform plan -target module.firehose-logging.aws_kinesis_firehose_delivery_stream.firehose-stream-public-access-logs\r\nRefreshing Terraform state in-memory prior to plan...\r\nThe refreshed state will be used to calculate this plan, but will not be\r\npersisted to local or remote state storage.\r\n\r\ndata.terraform_remote_state.global-infra: Refreshing state...\r\naws_s3_bucket.logbucket: Refreshing state... (ID: tntdigital-tools-platform-logs)\r\ndata.aws_iam_policy_document.firehose-trust-policy-doc: Refreshing state...\r\naws_iam_role.firehose-role: Refreshing state... (ID: tools-firehose-platform-logs)\r\ndata.aws_iam_policy_document.read_from_es: Refreshing state...\r\naws_elasticsearch_domain.es: Refreshing state... (ID: arn:aws:es:eu-west-1:156776894708:domain/tools-platform-logs)\r\naws_kinesis_firehose_delivery_stream.firehose-stream-public-access-logs: Refreshing state... (ID: arn:aws:firehose:eu-west-1:156776894708...ream/tools-platform-logs-public-access)\r\n\r\nError: Error refreshing state: 1 error(s) occurred:\r\n\r\n* module.firehose-logging.aws_kinesis_firehose_delivery_stream.firehose-stream-public-access-logs: 1 error(s) occurred:\r\n\r\n* module.firehose-logging.aws_kinesis_firehose_delivery_stream.firehose-stream-public-access-logs: aws_kinesis_firehose_delivery_stream.firehose-stream-public-access-logs: unexpected EOF\r\n\r\n\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x281c493]\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4:\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: goroutine 220 [running]:\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: github.com/terraform-providers/terraform-provider-aws/aws.flattenKinesisFirehoseDeliveryStream(0xc420235110, 0xc4203f7c20, 0xc42051a260, 0x0)\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_firehose_delivery_stream.go:298 +0x1a3\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsKinesisFirehoseDeliveryStreamRead(0xc420235110, 0x30fe7e0, 0xc420011900, 0xc420235110, 0x0)\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_firehose_delivery_stream.go:1299 +0x323\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0xc4202e23f0, 0xc4203b0820, 0x30fe7e0, 0xc420011900, 0xc42043d488, 0xe64fe7367e5da201, 0x800992532b3)\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:354 +0x17e\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Refresh(0xc4201b90a0, 0xc4203b07d0, 0xc4203b0820, 0x5e9d000, 0x0, 0x0)\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:308 +0x9a\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Refresh(0xc420724300, 0xc420659100, 0xc420659290, 0x0, 0x0)\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:549 +0x4e\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: reflect.Value.call(0xc420334c60, 0xc42051a048, 0x13, 0x34f7a78, 0x4, 0xc420331f20, 0x3, 0x3, 0x0, 0x0, ...)\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: \t/usr/local/go/src/reflect/value.go:434 +0x905\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: reflect.Value.Call(0xc420334c60, 0xc42051a048, 0x13, 0xc420373f20, 0x3, 0x3, 0x0, 0x0, 0x0)\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: \t/usr/local/go/src/reflect/value.go:302 +0xa4\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: net/rpc.(*service).call(0xc420186040, 0xc42069c000, 0xc4201720a0, 0xc420162600, 0xc4206ef660, 0x2c733e0, 0xc420659100, 0x16, 0x2c73420, 0xc420659290, ...)\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: \t/usr/local/go/src/net/rpc/server.go:381 +0x142\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: created by net/rpc.(*Server).ServeCodec\r\n2018-02-01T16:55:55.237+0100 [DEBUG] plugin.terraform-provider-aws_v1.8.0_x4: \t/usr/local/go/src/net/rpc/server.go:475 +0x36b\r\n2018/02/01 16:55:55 [ERROR] root.firehose-logging: eval: *terraform.EvalRefresh, err: aws_kinesis_firehose_delivery_stream.firehose-stream-public-access-logs: unexpected EOF\r\n2018/02/01 16:55:55 [ERROR] root.firehose-logging: eval: *terraform.EvalSequence, err: aws_kinesis_firehose_delivery_stream.firehose-stream-public-access-logs: unexpected EOF\r\n2018/02/01 16:55:55 [TRACE] [walkRefresh] Exiting eval tree: module.firehose-logging.aws_kinesis_firehose_delivery_stream.firehose-stream-public-access-logs\r\n2018/02/01 16:55:55 [TRACE] dag/walk: upstream errored, not walking \"provider.aws (close)\"\r\n2018/02/01 16:55:55 [TRACE] dag/walk: upstream errored, not walking \"module.firehose-logging.output.firehose_stream_public_access_logs\"\r\n2018/02/01 16:55:55 [TRACE] dag/walk: upstream errored, not walking \"root\"\r\n2018/02/01 16:55:55 [DEBUG] plugin: waiting for all plugin processes to complete...\r\n2018-02-01T16:55:55.241+0100 [WARN ] plugin: error closing client during Kill: err=\"connection is shut down\"\r\n2018-02-01T16:55:55.241+0100 [DEBUG] plugin: plugin process exited: path=/Users/vlazarenko/work/TNT/terraform/terraform_plans/platform/tools-data/.terraform/plugins/darwin_amd64/terraform-provider-aws_v1.8.0_x4\r\n\r\n\r\n\r\n!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n\r\nTerraform crashed! This is always indicative of a bug within Terraform.\r\nA crash log has been placed at \"crash.log\" relative to your current\r\nworking directory. It would be immensely helpful if you could please\r\nreport the crash with Terraform[1] so that we can fix this.\r\n\r\nWhen reporting bugs, please include your terraform version. That\r\ninformation is available on the first line of crash.log. You can also\r\nget it by running 'terraform --version' on the command line.\r\n\r\n[1]: https://github.com/hashicorp/terraform/issues\r\n\r\n!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n```\r\n@bflad  There you go"}}
{"actor":{"display_login":"favoretti"}}