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

24 lines
665 B
Terraform
Raw Normal View History

2017-01-19 15:08:56 +01:00
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}"
}