From 61cdf8fd3dec550c47f3b817ea301927e2f18473 Mon Sep 17 00:00:00 2001 From: Brian Hansen Date: Wed, 15 Jun 2022 09:26:23 +0200 Subject: [PATCH] feat: Ensure EFS is owned by the posix_user to avoid permission issues (#287) --- main.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.tf b/main.tf index 5a8e5c1e..d6654140 100644 --- a/main.tf +++ b/main.tf @@ -469,6 +469,15 @@ resource "aws_efs_access_point" "this" { gid = local.gid uid = local.uid } + + root_directory { + path = "/home/atlantis" + creation_info { + owner_gid = local.gid + owner_uid = local.uid + permissions = 0750 + } + } } ################################################################################