File tree Expand file tree Collapse file tree
infrastructure/modules/eventpub Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11resource "archive_file" "lambda" {
22 type = " zip"
3- source_dir = " ${ path . root } /.terraform/modules/eventpub/lambda/eventpub/src "
3+ source_dir = var . source_path
44
55 # Timestamp in path to resolve https://github.com/hashicorp/terraform-provider-archive/issues/39
6- output_path = " ${ path . root } /.terraform/modules/eventpub/lambda/eventpub_ ${ timestamp () } .zip "
6+ output_path = var . output_path
77 excludes = [
88 # NodeJS Exclusions
99 " **/__tests__" ,
Original file line number Diff line number Diff line change @@ -123,3 +123,13 @@ variable "force_destroy" {
123123 description = " When enabled will force destroy event-cache S3 bucket"
124124 default = false
125125}
126+
127+ variable "source_path" {
128+ type = string
129+ description = " Path to the source code for the lambda function"
130+ }
131+
132+ variable "output_path" {
133+ type = string
134+ description = " Path to output the zipped lambda function"
135+ }
You can’t perform that action at this time.
0 commit comments