Closed JoseD92 closed 4 years ago
there is another MR https://github.com/fpco/terraform-aws-foundation/pull/296/files that solves the problem at the asg module level, closing this MR over that one
@mcgirr / @JoseD92 do we delete the branch as well?
name: add alb_target_group_arns to parameters about: adds alb_target_group_arns as a parameter to single-node-asg
Right now the aws provider has problems tracking the state of the aws_autoscaling_attachment which causes a that each time a plan is made terraform will detect a change even though no chage has been made.
try for example test1.txt and test2.txt.
for the test1 project (which uses terraform-aws-foundation//modules/asg in the way terraform-aws-foundation//modules/single-node-asg does) after applying the plan once and trying again you get the change:
applying again you get
applying yet again it returns to the first change and applying will loop between the two changes
test2 on the other hand does uses correctly the alb_target_group_arns parameter and no changes are detected after applying once.
To fix that create destroy loop with single-node-asg we just need a small patch to pass that parameter down to asg module