Closed kevinj-bsquare closed 3 years ago
We have a simple call to version 0.2.3 with the following: (slightly obfuscated)
module "security_header_lambda" { source = "transcend-io/lambda-at-edge/aws" version = "0.2.3" name = "security_headers" description = "Adds security headers to the response" runtime = "nodejs12.x" lambda_code_source_dir = "${path.module}/security_headers" s3_artifact_bucket = local.****_ui_artifact_bucket }
The output from terraform plan returns (slightly obfuscated)
` Error: one of 'source_dir', 'source_file', 'source_content_filename' must be specified
on ./modules/**.security_header_lambda/main.tf line 9, in data "archive_file" "zip_file_for_lambda":
9: data archive_file zip_file_for_lambda { `
Would appreciate understanding what's causing the error and how to work around it.
PEBCAK. Had an underscore instead of a space and that pointed to nowhere in source.
We have a simple call to version 0.2.3 with the following: (slightly obfuscated)
module "security_header_lambda" { source = "transcend-io/lambda-at-edge/aws" version = "0.2.3" name = "security_headers" description = "Adds security headers to the response" runtime = "nodejs12.x" lambda_code_source_dir = "${path.module}/security_headers" s3_artifact_bucket = local.****_ui_artifact_bucket }
The output from terraform plan returns (slightly obfuscated)
` Error: one of 'source_dir', 'source_file', 'source_content_filename' must be specified
on ./modules/**.security_header_lambda/main.tf line 9, in data "archive_file" "zip_file_for_lambda":
9: data archive_file zip_file_for_lambda { `
Would appreciate understanding what's causing the error and how to work around it.