From 0c1e8d52c4ea068edd82cfa5cdfe220367bd876c Mon Sep 17 00:00:00 2001 From: Ilias Diamantakos Date: Tue, 6 Apr 2021 15:50:56 +0100 Subject: [PATCH 1/2] fix: added action to policy for lambda-to-lambda async calls --- iam.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/iam.tf b/iam.tf index 6fc2aa2d..445c56c7 100644 --- a/iam.tf +++ b/iam.tf @@ -188,6 +188,7 @@ data "aws_iam_policy_document" "async" { "sns:Publish", "sqs:SendMessage", "events:PutEvents", + "lambda:InvokeFunction", ] resources = compact(distinct([var.destination_on_failure, var.destination_on_success])) From c0bb8b93fa6b0170e0c6360769e7103ef064035e Mon Sep 17 00:00:00 2001 From: Anton Babenko Date: Tue, 6 Apr 2021 18:01:09 +0200 Subject: [PATCH 2/2] Hotfixing terraform-docs --- .github/workflows/pre-commit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 7eaa782b..cbf80b6b 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -94,7 +94,7 @@ jobs: - name: Install pre-commit dependencies run: | pip install pre-commit - curl -L "$(curl -s https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-v0.12.0-linux-amd64" | head -n1)" > terraform-docs && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/ + curl -L "$(curl -s https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-v0.12\..+?-linux-amd64" | head -n1)" > terraform-docs && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/ curl -L "$(curl -s https://api.github.com/repos/terraform-linters/tflint/releases/latest | grep -o -E "https://.+?_linux_amd64.zip")" > tflint.zip && unzip tflint.zip && rm tflint.zip && sudo mv tflint /usr/bin/ - name: Execute pre-commit # Run all pre-commit checks on max version supported