github.com/candidpartners/terraform@v0.9.5-0.20171005231213-29f5f88820f6/examples/alicloud-vpc-cluster-sg/main.tf (about) 1 resource "alicloud_security_group" "default" { 2 name = "${var.short_name}-default" 3 description = "Default security group for VPC" 4 vpc_id = "${var.vpc_id}" 5 } 6 7 resource "alicloud_security_group" "control" { 8 name = "${var.short_name}-control" 9 description = "Allow inboud traffic for control nodes" 10 vpc_id = "${var.vpc_id}" 11 } 12 13 resource "alicloud_security_group" "edge" { 14 name = "${var.short_name}-edge" 15 description = "Allow inboud traffic for edge routing" 16 vpc_id = "${var.vpc_id}" 17 } 18 19 resource "alicloud_security_group" "worker" { 20 name = "${var.short_name}-worker" 21 description = "Allow inboud traffic for worker nodes" 22 vpc_id = "${var.vpc_id}" 23 }