Skip to content

Commit

Permalink
Ignore last_modified timestamp deciding whether to do an update (#9)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
brainsik authored and antonbabenko committed Jun 5, 2018
1 parent 23534ff commit 8cd1901
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ resource "aws_lambda_function" "notify_slack" {
}

lifecycle {
ignore_changes = ["filename"]
ignore_changes = [
"filename",
"last_modified",
]
}
}

0 comments on commit 8cd1901

Please sign in to comment.