From 7c6b8ebd41d55d22eadd368094b653f460106bbc Mon Sep 17 00:00:00 2001 From: jeremy avnet Date: Mon, 4 Jun 2018 16:23:44 -0700 Subject: [PATCH] Ignore `last_modified` timestamp deciding whether to do an update The `last_modified` timestamp is tied to when a user did a `terraform init`. This means the exact same code, checked out at different times, results in a change being detected. Ignoring the time_stamp fixes this. --- main.tf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index b9dc9721..114e85d6 100644 --- a/main.tf +++ b/main.tf @@ -53,6 +53,9 @@ resource "aws_lambda_function" "notify_slack" { } lifecycle { - ignore_changes = ["filename"] + ignore_changes = [ + "filename", + "last_modified", + ] } }