From 31fc7e0b606db4d697600694b71e7654e32caf53 Mon Sep 17 00:00:00 2001 From: Anton Babenko Date: Thu, 6 Jul 2017 13:17:47 +0200 Subject: [PATCH] Added ignore_changes of filename --- .gitignore | 1 + README.md | 2 +- main.tf | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..45afc37 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +files \ No newline at end of file diff --git a/README.md b/README.md index feada0c..1df9159 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/main.tf b/main.tf index b2c761d..607458c 100644 --- a/main.tf +++ b/main.tf @@ -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" {