-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlambda.tf
23 lines (21 loc) · 967 Bytes
/
lambda.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module "webdocker_lambda" {
source = "./lambda"
name = var.lambda_name
project = var.project
environment = var.environment
description = var.description
ref = var.lambda_script_reference
policy = data.aws_iam_policy_document.webdocker_exec_policy.json
bucket = var.lambda_bucket
handler = "index.handler"
source_arn = ""
source_principal = ""
timeout = 30
runtime = "nodejs16.x"
environmentVariables = {
DESTINATION_BUCKET_NAME = var.destination_bucket_name
DESTINATION_CONFIGS_ASSET_KEY = var.s3_destination_configs_asset_key
CLOUDFRONT_DISTRIBUTION_ID = var.cloudfront_distribution_id
CLOUDFRONT_INVALIDATION_PATH = "/${var.s3_destination_configs_asset_key}"
}
}