sg, eks, iam 모듈추가

This commit is contained in:
2022-12-28 22:15:11 +09:00
parent 878bae5c65
commit 0b1946ecb3
25 changed files with 342 additions and 41 deletions

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

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

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
}

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

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