sg, eks, iam 모듈추가
This commit is contained in:
11
modules/sg-rule-add/main.tf
Normal file
11
modules/sg-rule-add/main.tf
Normal file
@ -0,0 +1,11 @@
|
||||
resource "aws_security_group_rule" "sg-rule-add" {
|
||||
description = "Security groups rule add"
|
||||
|
||||
type = var.type
|
||||
from_port = var.set_ports.http
|
||||
to_port = var.set_ports.http
|
||||
protocol = var.set_ports.protocol_tcp #tcp
|
||||
cidr_blocks = var.cidr_blocks
|
||||
security_group_id = var.sg_id
|
||||
|
||||
}
|
Reference in New Issue
Block a user