Skip to content

Commit

Permalink
🔧 Build Lambda Functions on The Fly
Browse files Browse the repository at this point in the history
  • Loading branch information
connormaglynn committed Jan 15, 2025
1 parent fb2c971 commit 1a421b5
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
data "external" "build_lambdas" {
program = [
"bash", "-c",
<<EOT
cd .terraform/modules/github-cloudtrail-auditlog &&
make all > /dev/null 2>&1 &&
echo '{"status": "success"}'
EOT
]
}

module "github-cloudtrail-auditlog" {
source = "github.com/ministryofjustice/operations-engineering-cloudtrail-lake-github-audit-log-terraform-module?ref=main"
create_github_auditlog_s3bucket = true
github_auditlog_s3bucket = "github-audit-log-landing"
cloudtrail_lake_channel_arn = "arn:aws:cloudtrail:eu-west-2:211125434264:channel/810d471f-21e9-4552-b839-9e334f7fbe51"
github_audit_allow_list = ".*"

# Ensure the module waits for Lambdas to be built
depends_on = [data.external.build_lambdas]
}

0 comments on commit 1a421b5

Please sign in to comment.