Open acvir opened 2 years ago
Hey @acvir π Thank you for taking the time to raise this! So that we have all of the necessary information in order to look into this, can you supply the Terraform configuration as well as the debug logs (if possible, and redacted as needed)?
Hey @justinretzolk Updated the terrraform config files section above.
Hi @justinretzolk Do we have any updates on this?
I am also getting similar error:
Error: Provider produced inconsistent final plan β β When expanding the plan for β module.test_vpc.aws_route_table.public["10.20.11.0/28"] to include new β values learned so far during apply, provider β "registry.terraform.io/hashicorp/aws" produced an invalid new value for β .route: actual set element β cty.ObjectVal(map[string]cty.Value{"carrier_gateway_id":cty.NullVal(cty.String), β "cidr_block":cty.NullVal(cty.String), β "core_network_arn":cty.NullVal(cty.String), β "destination_prefix_list_id":cty.NullVal(cty.String), β "egress_only_gateway_id":cty.NullVal(cty.String), β "gateway_id":cty.StringVal("local"), β "ipv6_cidr_block":cty.StringVal("2600:1f11:db7:400::/56"), β "local_gateway_id":cty.NullVal(cty.String), β "nat_gateway_id":cty.NullVal(cty.String), β "network_interface_id":cty.NullVal(cty.String), β "transit_gateway_id":cty.NullVal(cty.String), β "vpc_endpoint_id":cty.NullVal(cty.String), β "vpc_peering_connection_id":cty.NullVal(cty.String)}) does not correlate β with any element in plan. β β This is a bug in the provider, which should be reported in the provider's β own issue tracker.
Error Output
Provider produced inconsistent final plan , When expanding the plan for module.subnets[0].aws_route_table.route_tables[0] to include new values learned so far during apply, provider "registry.terraform.io/hashicorp/aws" produced an invalid new value for .route: planned set element
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v1.1.7 Provider hashicorp/aws v4.6.0
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Error: Provider produced inconsistent final plan β β When expanding the plan for β module.db-subnets[0].aws_route_table.secondary_route_tables[0] to β include new values learned so far during apply, provider β "registry.terraform.io/hashicorp/aws" produced an invalid new value for β .route: planned set element β cty.ObjectVal(map[string]cty.Value{"carrier_gateway_id":cty.StringVal(""), β "cidr_block":cty.StringVal(""), "core_network_arn":cty.StringVal(""), β "destination_prefix_list_id":cty.StringVal("pl-079eaab23a45a8974"), β "egress_only_gateway_id":cty.StringVal(""), "gateway_id":cty.StringVal(""), β "instance_id":cty.StringVal(""), "ipv6_cidr_block":cty.StringVal(""), β "local_gateway_id":cty.StringVal(""), "nat_gateway_id":cty.StringVal(""), β "network_interface_id":cty.StringVal(""), β "transit_gateway_id":cty.UnknownVal(cty.String), β "vpc_endpoint_id":cty.StringVal(""), β "vpc_peering_connection_id":cty.StringVal("")}) does not correlate with any β element in actual. β β This is a bug in the provider, which should be reported in the provider's β own issue tracker.
Expected Behavior
Update the vpc subnets and route tables , when updating via terrform using AWS customizations-pipeline CodePipeline
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
0000