Skip to content

Commit

Permalink
Added ignore_changes of filename
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbabenko committed Jul 6, 2017
1 parent 7b690ae commit 31fc7e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
files
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ resource "aws_autoscaling_group" "ecs" {
}

module "ecs_instance_draining_on_scale_in" {
source = "github.com/terraform-community-modules/ecs-instance-draining-on-scale-in"
source = "github.com/terraform-community-modules/tf_aws_ecs_instance_draining_on_scale_in"

autoscaling_group_name = "${aws_autoscaling_group.ecs.asg_name}"
hook_heartbeat_timeout = 1800
Expand Down
6 changes: 6 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ resource "aws_lambda_function" "lambda" {
handler = "index.lambda_handler"

source_code_hash = "${data.archive_file.index.output_base64sha256}"

lifecycle {
# A workaround when running this code on different machines is to ignore changes, as described here:
# https://github.com/hashicorp/terraform/issues/7613#issuecomment-241603087
ignore_changes = ["filename"]
}
}

resource "aws_lambda_permission" "sns" {
Expand Down

0 comments on commit 31fc7e0

Please sign in to comment.