terraform/examples/alicloud-vpc-cluster-sg/main.tf

24 lines
665 B
HCL

resource "alicloud_security_group" "default" {
name = "${var.short_name}-default"
description = "Default security group for VPC"
vpc_id = "${var.vpc_id}"
}
resource "alicloud_security_group" "control" {
name = "${var.short_name}-control"
description = "Allow inboud traffic for control nodes"
vpc_id = "${var.vpc_id}"
}
resource "alicloud_security_group" "edge" {
name = "${var.short_name}-edge"
description = "Allow inboud traffic for edge routing"
vpc_id = "${var.vpc_id}"
}
resource "alicloud_security_group" "worker" {
name = "${var.short_name}-worker"
description = "Allow inboud traffic for worker nodes"
vpc_id = "${var.vpc_id}"
}