Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Module nomad-cluster : aws_autoscaling_attachment broken #77

Closed
so-development opened this issue Sep 7, 2020 · 1 comment
Closed

Module nomad-cluster : aws_autoscaling_attachment broken #77

so-development opened this issue Sep 7, 2020 · 1 comment

Comments

@so-development
Copy link
Contributor

Hi,

I think the same issue that was reported for terraform-aws-consul (hashicorp/terraform-aws-consul#183) also exists for nomad.

When I try to create an "aws_autoscaling_attachment" by using the autoscaling group "autoscaling_group" of the module "nomad-cluster" I experience the following behavior:

First apply: Target groups are added
Second apply: Target groups are removed
Third apply: Target groups are added
...

Regarding to https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/autoscaling_attachment I guess the following snippet should also be added for the autoscaling group here:

  lifecycle {
    ignore_changes = [load_balancers, target_group_arns]
  }

The same change was made for terraform-aws consul here: hashicorp/terraform-aws-consul#188

@brikis98
Copy link
Collaborator

Thanks for the fix in #78!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants