-
Notifications
You must be signed in to change notification settings - Fork 0
/
efs-access-point.tf
36 lines (29 loc) · 1010 Bytes
/
efs-access-point.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
resource "aws_efs_access_point" "access_points" {
for_each = var.access_points
file_system_id = aws_efs_file_system.efs.id
dynamic "posix_user" {
for_each = each.value.posix_user != null ? [1] : []
content {
gid = each.value.posix_user.group_id
secondary_gids = each.value.posix_user.secondary_group_ids
uid = each.value.posix_user.user_id
}
}
root_directory {
dynamic "creation_info" {
for_each = each.value.root_directory_creation_permissions != null ? [1] : []
content {
owner_gid = each.value.root_directory_creation_permissions.owner_group_id
owner_uid = each.value.root_directory_creation_permissions.owner_user_id
permissions = each.value.root_directory_creation_permissions.access_point_permissions
}
}
path = each.value.root_directory_path
}
tags = merge(
{ Name = each.key },
local.common_tags,
each.value.additional_tags,
var.additional_tags_all
)
}