Skip to content

Commit 1b6f6ac

Browse files
Merge pull request #3 from taylorgoodallau/master
Update use of source_code_hash for Terraform 0.11.12 and later
2 parents bb30c58 + 7dd32b9 commit 1b6f6ac

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("${path.module}/${var.filename}.zip"))}"
91+
source_code_hash = filebase64sha256("${path.module}/${var.filename}.zip")
9292
runtime = "python2.7"
9393
vpc_config {
9494
subnet_ids = "${var.subnets_lambda}"

0 commit comments

Comments
 (0)