Amazon web services 与VPC端点的地形路由表关联
我在使用terraform(云)将vpc端点与路由关联时遇到问题 VPC端点Amazon web services 与VPC端点的地形路由表关联,amazon-web-services,terraform,terraform-provider-aws,Amazon Web Services,Terraform,Terraform Provider Aws,我在使用terraform(云)将vpc端点与路由关联时遇到问题 VPC端点 resource "aws_vpc_endpoint" "s3_endpoint_gateway" { vpc_id = aws_vpc.edcelvistacom_vpc.id service_name = "com.amazonaws.${var.region}.s3" tags = { "Name" = &q
resource "aws_vpc_endpoint" "s3_endpoint_gateway" {
vpc_id = aws_vpc.edcelvistacom_vpc.id
service_name = "com.amazonaws.${var.region}.s3"
tags = {
"Name" = "VPC Endpoint S3 - for Private Resources"
"Project" = "edcelvistacom"
"Env" = "Production"
}
}
路由关联
resource "aws_vpc_endpoint_route_table_association" "application" {
count = length(var.availability_zones)
route_table_id = element(aws_route_table.application.*.id, count.index)
vpc_endpoint_id = aws_vpc_endpoint.s3_endpoint_gateway.id
}
错误:
Error: Provider produced inconsistent result after apply
When applying changes to
module.networking.aws_vpc_endpoint_route_table_association.application[1],
provider "registry.terraform.io/hashicorp/aws" produced an unexpected new
value: Root resource was present, but now absent.
This is a bug in the provider, which should be reported in the provider's own
issue tracker.
aws 2.70
非常古老。这个问题已经在aws 3.36中讨论过,而且似乎已经在aws 3.36中讨论过了。因此,我将尝试使用最新版本3.40
,如果错误仍然存在,则使用详细信息创建一个新的github问题。您的aws提供商版本是什么?Terraform v0.14.5+提供商注册表。Terraform.io/hashicorp/aws v2.70.0+提供商注册表。Terraform.io/hashicorp/template v2.2.0使用Terraform v0.14.5+提供商解决registry.terraform.io/hashicorp/aws v3.40.0+提供程序registry.terraform.io/hashicorp/template v2.2.0