amazon-web-services - Terraform 路由表与 VPC 端点的关联
问题描述
将 vpc 端点关联到路由时,我在使用 terraform (cloud) 时遇到问题
VPC 端点
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
很老了。此问题已在 github 上报告,并且似乎已在aws 3.36
. 因此,我会尝试使用最新版本3.40
,如果错误仍然存在,则使用详细信息创建一个新的 github 问题。
推荐阅读
- pytorch - 如何为 gpytorch 中的所有功能学习一个通用高斯过程
- javascript - 从 JQuery 检查/取消检查后 RadioListButton 选择无法正常工作
- excel - 有没有办法使用 VBA 代码将 Excel 工作簿保存到 Sharepoint?
- reactjs - Hook componentdidmount 不会重新渲染组件。可能是什么问题
- mysql - 尝试创建多对多关系时出现 MySQL 错误
- javascript - 比较两个对象的匹配值并将任何不匹配的值推送到单独的数组中,不断获得多个重复项
- php - Laravel 8 路线存在,但点击后什么也不做
- javascript - 做个西蒙游戏,不知道哪里错了
- python - 尝试从二进制文件中提取特定字节的数据时,从 struct.unpack 获取缓冲区大小错误
- jestjs - 开玩笑地说,我如何使用“toHaveBeenCalledWith”并且只匹配数组参数中对象的一部分?