Skip to content

Commit

Permalink
made access point config optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremycook123 committed Apr 22, 2024
1 parent 6534cda commit 8d8533c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion terraform/modules/efs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resource "aws_efs_file_system" "file_system" {
}

resource "aws_efs_access_point" "access_point" {
count = var.posix_access_point_config == {} || var.root_access_point_config == {} ? 0 : 1
count = var.posix_access_point_config == null || var.root_access_point_config == null ? 0 : 1

file_system_id = aws_efs_file_system.file_system.id

Expand Down
16 changes: 8 additions & 8 deletions terraform/modules/efs/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ variable "CORE_BACKUPS_RETENTION" {
variable "posix_access_point_config" {
description = "The configuration for the POSIX access point"
type = object({
posix_user_gid = optional(string)
posix_user_uid = optional(string)
posix_user_gid = string
posix_user_uid = string
})
default = {}
default = null
}

variable "root_access_point_config" {
description = "The configuration for the root access point"
type = object({
path = optional(string)
owner_gid = optional(string)
owner_uid = optional(string)
permissions = optional(string)
path = string
owner_gid = string
owner_uid = string
permissions = string
})
default = {}
default = null
}

0 comments on commit 8d8533c

Please sign in to comment.