Skip to content

Commit 4aa887e

Browse files
committed
fix(lambda): add git version in the filename used by lambda
Previously, the filename used by the lambda function was always the same, that was problematic if the source code changed the lambda function won't be changed because we no longer use the parameter aws source_code_hash. This commit fix that by changing the filename according to the latest git tag.
1 parent c813a0f commit 4aa887e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ resource "aws_iam_role_policy" "lambda_logging" {
235235
data "archive_file" "this" {
236236
type = "zip"
237237
source_dir = "${path.module}/package/"
238-
output_path = "${path.module}/aws-stop-start-resources.zip"
238+
output_path = "${path.module}/aws-stop-start-resources-3.0.1.zip" # The version should match with the latest git tag
239239
}
240240

241241
# Create Lambda function for stop or start aws resources

0 commit comments

Comments
 (0)