【发布时间】:2021-11-17 12:13:16
【问题描述】:
我正在尝试为我的安全组中的每个条目设置单独的名称。
我的示例代码在下面不起作用,我希望这会在图片中产生结果,但名称标签保持空白(我通过控制台将此设置为图片中的示例)。此标签适用于其他地方,例如针对安全组的“Allow-Google”名称标签。有什么方法可以实现吗?
resource "aws_security_group" "allow-google-dns" {
name = "allow-google-dns"
description = "Allows google dns"
vpc_id = var.vpcid
ingress = [
{
description = "allows google in"
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["8.8.8.8/32" ]
ipv6_cidr_blocks = []
prefix_list_ids = []
security_groups = []
self = false
tags = {
Name = "MyName"
}
}
]
tags = {
Name = "Allow-Google"
}
}
【问题讨论】:
-
太新了,TF还不支持。
标签: terraform terraform-provider-aws