Created
August 18, 2022 17:11
-
-
Save siolfyr/d6be5cb3b102440494069e4fefc70113 to your computer and use it in GitHub Desktop.
terraform-crash-event-rule-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform apply | |
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: | |
+ create | |
Terraform will perform the following actions: | |
# aws_cloudwatch_event_api_destination.test_open2 will be created | |
+ resource "aws_cloudwatch_event_api_destination" "test_open2" { | |
+ arn = (known after apply) | |
+ connection_arn = (known after apply) | |
+ http_method = "GET" | |
+ id = (known after apply) | |
+ invocation_endpoint = "https://example.api.com/call" | |
+ invocation_rate_limit_per_second = 1 | |
+ name = "example-api-destination" | |
} | |
# aws_cloudwatch_event_connection.example-api-destination--connection2 will be created | |
+ resource "aws_cloudwatch_event_connection" "example-api-destination--connection2" { | |
+ arn = (known after apply) | |
+ authorization_type = "API_KEY" | |
+ id = (known after apply) | |
+ name = "example-api-destination--connection2" | |
+ secret_arn = (known after apply) | |
+ auth_parameters { | |
+ api_key { | |
+ key = "example" | |
+ value = (sensitive value) | |
} | |
+ invocation_http_parameters { | |
} | |
} | |
} | |
# aws_cloudwatch_event_rule.test_api_rule2 will be created | |
+ resource "aws_cloudwatch_event_rule" "test_api_rule2" { | |
+ arn = (known after apply) | |
+ description = "Testing an api call" | |
+ event_bus_name = "default" | |
+ id = (known after apply) | |
+ is_enabled = true | |
+ name = "TestAnApiCall2" | |
+ name_prefix = (known after apply) | |
+ schedule_expression = "cron(0/5 * * * ? *)" | |
+ tags_all = (known after apply) | |
} | |
# aws_cloudwatch_event_target.test_api_target_2 will be created | |
+ resource "aws_cloudwatch_event_target" "test_api_target_2" { | |
+ arn = (known after apply) | |
+ event_bus_name = "default" | |
+ id = (known after apply) | |
+ rule = "TestAnApiCall2" | |
+ target_id = (known after apply) | |
+ http_target { | |
+ path_parameter_values = [] | |
+ query_string_parameters = { | |
+ "path" = "*" | |
+ "search" = "y" | |
} | |
} | |
} | |
Plan: 4 to add, 0 to change, 0 to destroy. | |
Do you want to perform these actions? | |
Terraform will perform the actions described above. | |
Only 'yes' will be accepted to approve. | |
Enter a value: yes | |
aws_cloudwatch_event_rule.test_api_rule2: Creating... | |
aws_cloudwatch_event_connection.example-api-destination--connection2: Creating... | |
╷ | |
│ Error: Plugin did not respond | |
│ | |
│ with aws_cloudwatch_event_rule.test_api_rule2, | |
│ on event.tf line 5, in resource "aws_cloudwatch_event_rule" "test_api_rule2": | |
│ 5: resource "aws_cloudwatch_event_rule" "test_api_rule2" { | |
│ | |
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details. | |
╵ | |
╷ | |
│ Error: Plugin did not respond | |
│ | |
│ with aws_cloudwatch_event_connection.example-api-destination--connection2, | |
│ on event.tf line 19, in resource "aws_cloudwatch_event_connection" "example-api-destination--connection2": | |
│ 19: resource "aws_cloudwatch_event_connection" "example-api-destination--connection2" { | |
│ | |
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details. | |
╵ | |
Stack trace from the terraform-provider-aws_v4.26.0_x5 plugin: | |
panic: interface conversion: interface {} is nil, not map[string]interface {} | |
goroutine 401 [running]: | |
github.com/hashicorp/terraform-provider-aws/internal/service/events.expandConnectionHTTPParameters({0x1400056c5e0, 0x1, 0x1090d72cc?}) | |
github.com/hashicorp/terraform-provider-aws/internal/service/events/connection.go:481 +0x270 | |
github.com/hashicorp/terraform-provider-aws/internal/service/events.expandCreateConnectionAuthRequestParameters({0x1400056c5b0, 0x1, 0x14003086cf8?}) | |
github.com/hashicorp/terraform-provider-aws/internal/service/events/connection.go:397 +0x23c | |
github.com/hashicorp/terraform-provider-aws/internal/service/events.resourceConnectionCreate(0x14000532380, {0x10b426d60?, 0x14000284000}) | |
github.com/hashicorp/terraform-provider-aws/internal/service/events/connection.go:265 +0x110 | |
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0x10c996288?, {0x10c996288?, 0x140023eac90?}, 0xd?, {0x10b426d60?, 0x14000284000?}) | |
github.com/hashicorp/terraform-plugin-sdk/v2@v2.20.0/helper/schema/resource.go:695 +0x138 | |
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0x14000f281c0, {0x10c996288, 0x140023eac90}, 0x1400053c1a0, 0x14000532200, {0x10b426d60, 0x14000284000}) | |
github.com/hashicorp/terraform-plugin-sdk/v2@v2.20.0/helper/schema/resource.go:837 +0x874 | |
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0x140001983d8, {0x10c996288?, 0x140023eab70?}, 0x1400350c230) | |
github.com/hashicorp/terraform-plugin-sdk/v2@v2.20.0/helper/schema/grpc_provider.go:1021 +0xb94 | |
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.muxServer.ApplyResourceChange({0x14001d5cea0, 0x14001d5cf00, {0x14002922a00, 0x2, 0x2}, 0x14001d5ced0, 0x14001d841a0, 0x140024ed2d0, 0x14001d5cf30}, {0x10c996288?, ...}, ...) | |
github.com/hashicorp/terraform-plugin-mux@v0.7.0/tf5muxserver/mux_server_ApplyResourceChange.go:27 +0x108 | |
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0x1400165bd60, {0x10c996288?, 0x140023ea300?}, 0x140034e2b60) | |
github.com/hashicorp/terraform-plugin-go@v0.13.0/tfprotov5/tf5server/server.go:813 +0x370 | |
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x10c68fd20?, 0x1400165bd60}, {0x10c996288, 0x140023ea300}, 0x140034e2af0, 0x0) | |
github.com/hashicorp/terraform-plugin-go@v0.13.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x174 | |
google.golang.org/grpc.(*Server).processUnaryRPC(0x140023e2d20, {0x10c99b8d0, 0x140025911e0}, 0x1400350bd40, 0x1400295b4d0, 0x111f61080, 0x0) | |
google.golang.org/grpc@v1.48.0/server.go:1295 +0x9d8 | |
google.golang.org/grpc.(*Server).handleStream(0x140023e2d20, {0x10c99b8d0, 0x140025911e0}, 0x1400350bd40, 0x0) | |
google.golang.org/grpc@v1.48.0/server.go:1636 +0x840 | |
google.golang.org/grpc.(*Server).serveStreams.func1.2() | |
google.golang.org/grpc@v1.48.0/server.go:932 +0x88 | |
created by google.golang.org/grpc.(*Server).serveStreams.func1 | |
google.golang.org/grpc@v1.48.0/server.go:930 +0x298 | |
Error: The terraform-provider-aws_v4.26.0_x5 plugin crashed! | |
This is always indicative of a bug within the plugin. It would be immensely | |
helpful if you could report the crash with the plugin's maintainers so that it | |
can be fixed. The output above should help diagnose the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment