terraform-demo/modules/sg-rule-add/main.tf
2022-12-28 22:50:49 +09:00

14 lines
361 B
HCL

resource "aws_security_group_rule" "sg-rule-add" {
# description = "Security groups rule add"
type = var.type
from_port = var.from_port
to_port = var.to_port
protocol = var.protocol
cidr_blocks = var.cidr_blocks
security_group_id = var.security_group_id
description = "${var.tag_name}-sg-rule"
}