test
This commit is contained in:
24
modules/efs-fs/main.tf
Normal file
24
modules/efs-fs/main.tf
Normal file
@ -0,0 +1,24 @@
|
||||
# EFS 파일 시스템 생성
|
||||
resource "aws_efs_file_system" "efs" {
|
||||
# 원존 클래스를 이용할 경우
|
||||
# availability_zone_name = "ap-northeast-2a"
|
||||
|
||||
# 유휴 시 데이터 암호화
|
||||
encrypted = true
|
||||
# KMS에서 관리형 키를 이용하려면 kms_key_id 속성을 붙여줍니다.
|
||||
|
||||
# 버스팅 처리량 모드
|
||||
throughput_mode = "bursting"
|
||||
|
||||
# 성능 모드: generalPurpose(범용 모드), maxIO(최대 IO 모드)
|
||||
performance_mode = "generalPurpose"
|
||||
|
||||
# 프로비저닝 처리량 모드
|
||||
# throughput_mode = "provisioned"
|
||||
# provisioned_throughput_in_mibps = 100
|
||||
|
||||
# 수명 주기 관리
|
||||
lifecycle_policy {
|
||||
transition_to_ia = "AFTER_30_DAYS"
|
||||
}
|
||||
}
|
4
modules/efs-fs/outputs.tf
Normal file
4
modules/efs-fs/outputs.tf
Normal file
@ -0,0 +1,4 @@
|
||||
output "efs_fs_id" {
|
||||
description = "efs fs id"
|
||||
value = aws_efs_file_system.efs.id
|
||||
}
|
10
modules/efs-fs/variables.tf
Normal file
10
modules/efs-fs/variables.tf
Normal file
@ -0,0 +1,10 @@
|
||||
# variable "sg_list" {
|
||||
# description = "security group list"
|
||||
# type = list(string)
|
||||
|
||||
# }
|
||||
# variable "subnet_id" {
|
||||
# description = "security group list"
|
||||
# type = string
|
||||
|
||||
# }
|
Reference in New Issue
Block a user