diff --git a/main.tf b/main.tf index 2119c7c..0d362e1 100644 --- a/main.tf +++ b/main.tf @@ -11,6 +11,12 @@ resource "null_resource" "site-monitor" { } } +resource "null_resource" "lambda" { + provisioner "local-exec" { + command = format("cd %s/slack && bash build.sh", path.module) + } +} + #Module : Cloudtrail Logs #Description : This terraform module is designed to create site-monitoring. module "site-monitor-rule" { @@ -78,12 +84,6 @@ module "site-monitor" { security_group_ids = var.security_group_ids } -resource "null_resource" "lambda" { - provisioner "local-exec" { - command = format("cd %s/slack && bash build.sh", path.module) - } -} - module "lambda" { source = "git::https://github.com/clouddrove/terraform-aws-lambda.git?ref=tags/0.12.5"