Skip to content

Commit cf83ecf

Browse files
author
Giuseppe Borgese
committed
zip path.module
1 parent b9feae2 commit cf83ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ resource "aws_lambda_function" "rotate-code-mysql" {
8888
function_name = "${var.name}-${var.filename}"
8989
role = "${aws_iam_role.lambda_rotation.arn}"
9090
handler = "lambda_function.lambda_handler"
91-
source_code_hash = "${base64sha256(file("${var.filename}.zip"))}"
91+
source_code_hash = "${base64sha256(file("${path.module}/${var.filename}.zip"))}"
9292
runtime = "python2.7"
9393
vpc_config {
9494
subnet_ids = "${var.subnets_lambda}"

0 commit comments

Comments
 (0)