From 1db4a445b4e3aab3a00995838273c3589d39ca17 Mon Sep 17 00:00:00 2001 From: ITO Shogo Date: Thu, 30 Nov 2023 21:48:19 +0900 Subject: [PATCH] fix: Give Atlantis write permission to EFS (#376) * fix: Give Atlantis write permission to EFS * chore: Update formatting --------- Co-authored-by: Bryant Biggs --- .pre-commit-config.yaml | 2 +- main.tf | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 45941f1c..f5ba003a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: v1.83.5 + rev: v1.83.6 hooks: - id: terraform_fmt - id: terraform_validate diff --git a/main.tf b/main.tf index db88a492..bbff36b2 100644 --- a/main.tf +++ b/main.tf @@ -485,7 +485,10 @@ module "efs" { override_policy_documents = try(var.efs.override_policy_documents, []) policy_statements = concat( [{ - actions = ["elasticfilesystem:ClientMount"] + actions = [ + "elasticfilesystem:ClientMount", + "elasticfilesystem:ClientWrite", + ] principals = [ { type = "AWS"