'Terraform tries to recreate in wrong region using module
I am not sure HOW to best describe what it is doing, but I have a plan that built two load balancers, with target groups and listeners in East 1 and East 2. Worked beautifully, and later needed to add a tag to both, worked flawlessy. I now want to build 2 more LB in the same two regions for different targets.
When I ran plan again prior to adding the new stuff, it said 26 to add. It appears that it finds the previously created LB and associated stuff, however, now it wants to recreate them in the opposite regions, create east 1 in east 2 and visaversa.
At a total loss here since NOTHING has changed on my end. Why does it now want to create new where it shouldnt?
Example of what it states,
module.east1.aws_lb.nlb-east1: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1
module.east2.aws_lb.nlb-east2: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1
module.east1.aws_lb.nlb-east2 will be created
So you can see it finds the previously created stuff, and now wants to create them in the opposing regions. Again, nothing has changed on my end!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
