tryretool / terraform-retool-modules

MIT License
23 stars 40 forks source link

Fix deleting launch configuration because it is attached to AutoScalingGroup #9

Closed yilinjuang closed 2 years ago

yilinjuang commented 2 years ago

Since AWS doesn't allow updating launch configuration in place, terraform tried to delete the old configuration and create a new one but failed.

https://github.com/hashicorp/terraform-provider-aws/issues/8485

In the doc, they recommend that we set lifecycle and name_prefix

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_configuration#using-with-autoscaling-groups