From c44429b8d5185a05aa91d3438785d72cf793f6e0 Mon Sep 17 00:00:00 2001 From: sidnhs Date: Mon, 12 Oct 2026 09:24:29 +0100 Subject: [PATCH] CCM-24223: Add role policy attachment dependency for lambda --- infrastructure/terraform/modules/lambda/lambda_function.tf | 4 ++++ .../config/vale/styles/config/vocabularies/words/accept.txt | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/infrastructure/terraform/modules/lambda/lambda_function.tf b/infrastructure/terraform/modules/lambda/lambda_function.tf index 9ec91d65..f2c29ef4 100644 --- a/infrastructure/terraform/modules/lambda/lambda_function.tf +++ b/infrastructure/terraform/modules/lambda/lambda_function.tf @@ -77,4 +77,8 @@ resource "aws_lambda_function" "main" { Name = local.csi }, ) + + depends_on = [ + aws_iam_role_policy_attachment.main + ] } diff --git a/scripts/config/vale/styles/config/vocabularies/words/accept.txt b/scripts/config/vale/styles/config/vocabularies/words/accept.txt index 7ed31939..2cc7e525 100644 --- a/scripts/config/vale/styles/config/vocabularies/words/accept.txt +++ b/scripts/config/vale/styles/config/vocabularies/words/accept.txt @@ -1,7 +1,4 @@ [Bb]undler -[Pp]npm -[Rr]epo -[Tt]erraform Bitwarden bot Cognito @@ -30,9 +27,11 @@ OAuth Octokit onboarding Podman +[Pp]npm Python rawContent relative_url +[Rr]epo sed simplifiable sublicense @@ -40,3 +39,4 @@ Syft toolchain Trivy Trufflehog +[Tt]erraform