[英]Error while creating interface type vpc endpoint in terraform (aws provider)
I am trying to create an interface type kms endpoint in terraform on aws. 我正在尝试在AWS上的Terraform中创建接口类型kms端点。 While doing so, I get the following error - 这样做时,出现以下错误-
Error creating VPC Endpoint: InvalidParameter: Subnet: subnet- does not have corresponding zone in the service com.amazonaws.ap-southeast-1.kms 创建VPC端点时出错:InvalidParameter:子网:subnet-服务com.amazonaws.ap-southeast-1.kms中没有相应的区域
My endpoint resource looks like -- 我的端点资源看起来像-
resource "aws_vpc_endpoint" "kms" {
vpc_id = "${aws_vpc.main.id}"
service_name = "com.amazonaws.${var.aws_region}.kms"
vpc_endpoint_type = "Interface"
subnet_ids = [
<my subnet ids>
]
security_group_ids = [ <my sg ids> ]
private_dns_enabled = true
}
Anyone any clue on what I might be missing. 任何人关于我可能会缺少的线索。 Just FYI -- I haven't added any route53 record for kms. 仅供参考-我没有为kms添加任何route53记录。 Do i need to? 我需要吗?
Looking forward to any replies. 期待任何答复。
Thanks Avi 谢谢阿维
If you have not created the private DNS in Route53, set private_dns_enabled=false . 如果尚未在Route53中创建专用DNS,请设置private_dns_enabled = false 。 Otherwise create the private zone first. 否则,首先创建专用区域。
我通过为不同子网创建多个终结点资源来解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.