【发布时间】:2021-05-08 12:53:44
【问题描述】:
我正在通过 terraform 添加安全组,并且在 terraform 应用后成功创建了 SG,但是当我去查看 AWS 门户时,只有入口规则被更新,而不是出口规则。
vpc_id = var.vpc_id
name = "${var.env_code}-testsg"
description = "Test SG"
ingress {
from_port = 8080
to_port = 8080
protocol = "tcp"
cidr_blocks = ["10.0.0.0/8"]
description = "Incoming traffic "
}
egress {
from_port = 8000
to_port = 8000
protocol = "tcp"
description = "Outbound traffic "
}
有什么建议可以解决这个问题吗?
【问题讨论】:
标签: amazon-web-services terraform terraform-provider-aws aws-security-group