This commit is contained in:
2025-11-18 03:20:27 +00:00
parent c50d803865
commit fadee048d7
49 changed files with 3243 additions and 0 deletions

6
modules/sg/main.tf Normal file
View File

@ -0,0 +1,6 @@
resource "aws_security_group" "sg" {
description = "Security groups"
name = var.sg_name
vpc_id = var.vpc_id
}

5
modules/sg/outputs.tf Normal file
View File

@ -0,0 +1,5 @@
//sg-output
output "sg_id" {
description = "sg id outputs"
value = aws_security_group.sg.id
}

9
modules/sg/variables.tf Normal file
View File

@ -0,0 +1,9 @@
variable "sg_name" {
description = "security group name"
type = string
}
variable "vpc_id" {
description = "vpc_id"
type = string
}