Skip to content

Commit

Permalink
Merge pull request #3 from taylorgoodallau/master
Browse files Browse the repository at this point in the history
Update use of source_code_hash for Terraform 0.11.12 and later
  • Loading branch information
giuseppeborgese authored Oct 16, 2019
2 parents bb30c58 + 7dd32b9 commit 1b6f6ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ resource "aws_lambda_function" "rotate-code-mysql" {
function_name = "${var.name}-${var.filename}"
role = "${aws_iam_role.lambda_rotation.arn}"
handler = "lambda_function.lambda_handler"
source_code_hash = "${base64sha256(file("${path.module}/${var.filename}.zip"))}"
source_code_hash = filebase64sha256("${path.module}/${var.filename}.zip")
runtime = "python2.7"
vpc_config {
subnet_ids = "${var.subnets_lambda}"
Expand Down

0 comments on commit 1b6f6ac

Please sign in to comment.