Loading...
Loading...
### Terraform Version ```shell Error: The terraform-provider-aws_v5.83.1_x5 plugin crashed! ``` ### Terraform Configuration Files ```terraform terraform { backend "s3" { bucket = "rn-terraform-state" key = "tf-infra-grouping/develop.tfstate" region = "us-east-1" dynamodb_table = "rn-terraform-locks" encrypt = true } required_providers { aws = { source = "hashicorp/aws" version = "~> 5.0" } } } provider "aws" { region = "us-east-1" } ``` ### Debug Output ``` Stack trace from the terraform-provider-aws_v5.83.1_x5 plugin: panic: Unknown kind: bool goroutine 91 [running]: github.com/hashicorp/terraform-plugin-sdk/v2/terraform.(*ResourceConfig).get(0x1b?, {0xc0047c05e0?, 0x2?}, 0xc001501ce0) github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/terraform/resource.go:335 +0x51b github.com/hashicorp/terraform-plugin-sdk/v2/terraform.(*ResourceConfig).IsComputed(0x1825a1a9?, {0xc0047c05e0?, 0xc0016a40e0?}) github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/terraform/resource.go:248 +0x25 github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*ConfigFieldReader).readMap(0xc001501ef0, {0x182defcc, 0x12}, 0xc00145d180) github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/helper/schema/field_reader_config.go:192 +0x4df github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*ConfigFieldReader).readField(0xc001501ef0, {0xc0032e3420, 0x1, 0x1}, 0x0) github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/helper/schema/field_reader_config.go:108 +0x4be github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*ConfigFieldReader).ReadField(0x1ba1be40?, {0xc0032e3420?, 0x1825c302?, 0x6?}) github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/helper/schema/field_reader_config.go:32 +0xac github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*MultiLevelFieldReader).ReadFieldExact(0xc0032e3410?, {0xc0032e3420, 0x1, 0x1}, {0x1825c302, 0x6}) github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/helper/schema/field_reader_multi.go:34 +0x99 github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*ResourceData).get(0xc0043dcc80, {0xc0032e3420, 0x1, 0x1}, 0x0?) github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/helper/schema/resource_data.go:551 +0x12f github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*ResourceData).getChange(0xc0043dcc80, {0x182defcc?, 0x12?}, 0x1?, 0x12) github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/helper/schema/resource_data.go:527 +0x1c7 github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*ResourceData).diffChange(0x0?, {0x182defcc?, 0x1a47f0e8?}) github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/helper/schema/resource_data.go:504 +0x6a github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.schemaMap.diffMap(0x0?, {0x182defcc, 0x12}, 0xc00145d180, 0xc0016a4c58, {0x1dbc77e0, 0xc0043dcc80}, 0x0) github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/helper/schema/schema.go:1302 +0xc9 github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.schemaMap.diff(0xc001450720, {0x1db6de28, 0xc001500ea0}, {0x182defcc, 0x12}, 0xc00145d180, 0xc0043dcc00, {0x1dbc77e0, 0xc0043dcc80}, 0x0) github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/helper/schema/schema.go:1132 +0x29d github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.schemaMap.Diff(0xc001450720, {0x1db6de28, 0xc001500ea0}, 0xc00439f040, 0xc0050557c0, 0x0, {0x1d825280, 0xc000cac300}, 0x0) github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/helper/schema/schema.go:678 +0x332 github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).SimpleDiff(0x1db6e1e8?, {0x1db6de28?, 0xc001500ea0?}, 0xc00439f040, 0xc001500ed0?, {0x1d825280?, 0xc000cac300?}) github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/helper/schema/resource.go:990 +0xdb github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).PlanResourceChange(0xc002cec648, {0x1db6de28?, 0xc001500db0?}, 0xc005054fa0) github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/helper/schema/grpc_provider.go:860 +0xbdf github.com/hashicorp/terraform-plugin-mux/tf5muxserver.(*muxServer).PlanResourceChange(0xc001309a00, {0x1db6de28?, 0xc001500ae0?}, 0xc005054fa0) github.com/hashicorp/terraform-plugin-mux@v0.17.0/tf5muxserver/mux_server_PlanResourceChange.go:73 +0x2ad github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).PlanResourceChange(0xc001868a00, {0x1db6de28?, 0xc00508fd10?}, 0xc0043dc780) github.com/hashicorp/terraform-plugin-go@v0.25.0/tfprotov5/tf5server/server.go:825 +0x3dc github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_PlanResourceChange_Handler({0x1d6ad120, 0xc001868a00}, {0x1db6de28, 0xc00508fd10}, 0xc0043dc700, 0x0) github.com/hashicorp/terraform-plugin-go@v0.25.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:593 +0x1a6 google.golang.org/grpc.(*Server).processUnaryRPC(0xc0015a8a00, {0x1db6de28, 0xc00508fc80}, {0x1dbf4b40, 0xc0020f2b60}, 0xc0044197a0, 0xc002db9500, 0x28d88c80, 0x0) google.golang.org/grpc@v1.68.1/server.go:1394 +0xe2b google.golang.org/grpc.(*Server).handleStream(0xc0015a8a00, {0x1dbf4b40, 0xc0020f2b60}, 0xc0044197a0) google.golang.org/grpc@v1.68.1/server.go:1805 +0xe8b google.golang.org/grpc.(*Server).serveStreams.func2.1() google.golang.org/grpc@v1.68.1/server.go:1029 +0x7f created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 67 google.golang.org/grpc@v1.68.1/server.go:1040 +0x125 ``` ### Expected Behavior The following configuration should have produced a map(string, bool) when local.method_request_paranmeters was assigned to a resource property. ``` # DATA data "aws_api_gateway_rest_api" "existing_app_private_api_gateway" { name = var.existing_private_api_gateway_name } # VARIABLES variable "existing_private_api_gateway_name" { type = string description = "Name of the private API Gateway where the private API endpoints are to be configured" } variable "cloudsearch_parameter_names" { type = list(string) description = "Full list of every possible parameter that could be set and passed to cloudsearch during a query request" } variable "private_api_gateway_authorization" { type = string default = "NONE" } variable "cloudsearch_search_http_type" { type = string default = "GET" } variable "private_api_gateway_grouping_path_part" { type = string default = "grouping" } variable "private_api_gateway_grouping_search_path_part" { type = string default = "search" } variable "api_gateway_validator_id" { type = string default = "pcxmhv" description = "The default value represents the 'Validate body, query string parameters, and headers' request validator option" } variable "cloudsearch_api_gateway_grouping_search_integration_uri" { type = string } # TFVARS cloudsearch_parameter_names = [ "cursor", "facet.department_name", "facet.division_name", "facet.is_supervisor", "facet.location_name", "facet.program_id", "facet.supervisor_id", "facet.supervisor_name", "fq", "q", "q.options", "q.parser", "return", "size", "sort", "start" ] cloudsearch_api_gateway_grouping_search_integration_uri = "arn:aws:apigateway:us-east-1:{CLOUDSEARCH_DOMAIN_NAME}-{UNIQUE_ID_VALUE}cloudsearch:path/2013-01-01/search" # LOCALS method_request_parameters = { for parameter in toset(var.cloudsearch_parameter_names) : parameter => false } } #MAIN ################################# # Private API Gateway grouping Resource ################################# resource "aws_api_gateway_resource" "cloudsearch_grouping_resource" { parent_id = data.aws_api_gateway_rest_api.existing_app_private_api_gateway.root_resource_id path_part = var.private_api_gateway_grouping_path_part rest_api_id = data.aws_api_gateway_rest_api.existing_app_private_api_gateway.id } ################################# # Private API Gateway search Resource ################################# resource "aws_api_gateway_resource" "cloudsearch_grouping_search_resource" { parent_id = aws_api_gateway_resource.cloudsearch_grouping_resource.id path_part = var.private_api_gateway_grouping_search_path_part rest_api_id = data.aws_api_gateway_rest_api.existing_app_private_api_gateway.id } ################################# # Private API Gateway search GET Method ################################# resource "aws_api_gateway_method" "cloudsearch_grouping_search_get_method" { authorization = var.private_api_gateway_authorization http_method = var.cloudsearch_search_http_type resource_id = aws_api_gateway_resource.cloudsearch_grouping_search_resource.id rest_api_id = data.aws_api_gateway_rest_api.existing_app_private_api_gateway.id request_parameters = local.method_request_parameters request_validator_id = var.api_gateway_validator_id } ``` ### Actual Behavior panic: Unknown kind: bool ... Error: The terraform-provider-aws_v5.83.1_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. ### Steps to Reproduce terraform init terraform plan ### Additional Context _No response_ ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.