-
Notifications
You must be signed in to change notification settings - Fork 0
TF_TENCENTCLOUD_03
tongyiming edited this page Jan 25, 2024
·
2 revisions
tencentcloud_security_group_rule
0.0.0.0/0 cannot be used in the security group cidr_ip
field.
More information: https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/latest/docs/resources/security_group_rule
resource "tencentcloud_security_group_rule" "sglab_1" {
security_group_id = tencentcloud_security_group.sglab_1.id
type = "ingress"
cidr_ip = "10.0.0.0/16"
ip_protocol = "TCP"
port_range = "80"
policy = "ACCEPT"
description = "favourite sg rule_1"
}
resource "tencentcloud_security_group_rule" "sglab_1" {
security_group_id = tencentcloud_security_group.sglab_1.id
type = "ingress"
cidr_ip = "0.0.0.0/0"
ip_protocol = "TCP"
port_range = "80"
policy = "ACCEPT"
description = "favourite sg rule_1"
}