We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb30c58 + 7dd32b9 commit 1b6f6acCopy full SHA for 1b6f6ac
main.tf
@@ -88,7 +88,7 @@ resource "aws_lambda_function" "rotate-code-mysql" {
88
function_name = "${var.name}-${var.filename}"
89
role = "${aws_iam_role.lambda_rotation.arn}"
90
handler = "lambda_function.lambda_handler"
91
- source_code_hash = "${base64sha256(file("${path.module}/${var.filename}.zip"))}"
+ source_code_hash = filebase64sha256("${path.module}/${var.filename}.zip")
92
runtime = "python2.7"
93
vpc_config {
94
subnet_ids = "${var.subnets_lambda}"
0 commit comments