Skip to content

Commit 31fc7e0

Browse files
committed
Added ignore_changes of filename
1 parent 7b690ae commit 31fc7e0

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
files

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ resource "aws_autoscaling_group" "ecs" {
2525
}
2626

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

3030
autoscaling_group_name = "${aws_autoscaling_group.ecs.asg_name}"
3131
hook_heartbeat_timeout = 1800

main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ resource "aws_lambda_function" "lambda" {
117117
handler = "index.lambda_handler"
118118

119119
source_code_hash = "${data.archive_file.index.output_base64sha256}"
120+
121+
lifecycle {
122+
# A workaround when running this code on different machines is to ignore changes, as described here:
123+
# https://github.com/hashicorp/terraform/issues/7613#issuecomment-241603087
124+
ignore_changes = ["filename"]
125+
}
120126
}
121127

122128
resource "aws_lambda_permission" "sns" {

0 commit comments

Comments
 (0)