Terraform: template_file + LC + ASG Cycle: module

Created on 9 Feb 2017  ยท  4Comments  ยท  Source: hashicorp/terraform

Hi,

I got a cycle issue when referencing template_file + LC module + ASG module with the version 0.8.6. This was working with version 0.7.x

* Cycle: module.lc.output.id, module.asg.var.launch_configuration_id, module.lc.aws_launch_configuration.default (destroy), module.lc.output.name, module.asg.var.name, module.asg.aws_autoscaling_group.default, module.asg.aws_autoscaling_group.default (destroy)

Step to reproduce

I made a github repo to reproduce the case
https://github.com/kuthz/terraform-issue/tree/master/0.8.6

You probably need to adjust the file variables.tf to fit subnet + security group. The plan is working but not the apply.

terraform get
terraform plan
terraform apply
Change the value for the var test in the data "template_file" "userdata" from main.tf
terraform apply

The cycle error will appear.

Normal behavior

Normally this should create a new LC + ASG first and destroy the old one. This allow deployment without interruption.

Thanks

bug core

Most helpful comment

@kuthz: Sorry, I missed that it was also backported. It will be in the next 0.8 release too.

All 4 comments

Hi @kuthz,

Thanks for the complete reproduction case!

I've confirmed the bug in 0.8.6, but this is fixed in master by #11753, and will be in the 0.9 release.

Thx for the quick follow up on this. Do you think this will be back ported to 0.8.x?

@kuthz: Sorry, I missed that it was also backported. It will be in the next 0.8 release too.

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings