mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
14 lines
365 B
HCL
14 lines
365 B
HCL
resource "alicloud_security_group" "default" {
|
|
name = "${var.security_group_name}"
|
|
}
|
|
|
|
resource "alicloud_security_group_rule" "allow_all_tcp" {
|
|
type = "ingress"
|
|
ip_protocol = "tcp"
|
|
nic_type = "${var.nic_type}"
|
|
policy = "accept"
|
|
port_range = "1/65535"
|
|
priority = 1
|
|
security_group_id = "${alicloud_security_group.default.id}"
|
|
cidr_ip = "0.0.0.0/0"
|
|
} |