From a018195645f30d581f4ccffc4365f4f3a2ac0794 Mon Sep 17 00:00:00 2001 From: Jens Bissinger Date: Wed, 30 Dec 2015 10:46:32 +0100 Subject: [PATCH] Remove recommendation to use create_before_destroy-hook in autoscaling group Only use the create_before_destroy-hook in launch configurations. The autoscaling group must not use the create_before_destroy-hook, because it can be updated (and not destroyed + re-created). Using the create_before_destroy-hook in autoscaling group also leads to unwanted cyclic dependencies. --- .../docs/providers/aws/r/launch_configuration.html.markdown | 4 ---- 1 file changed, 4 deletions(-) diff --git a/website/source/docs/providers/aws/r/launch_configuration.html.markdown b/website/source/docs/providers/aws/r/launch_configuration.html.markdown index dd7dd84fc..3713923e8 100644 --- a/website/source/docs/providers/aws/r/launch_configuration.html.markdown +++ b/website/source/docs/providers/aws/r/launch_configuration.html.markdown @@ -77,10 +77,6 @@ resource "aws_launch_configuration" "as_conf" { resource "aws_autoscaling_group" "bar" { name = "terraform-asg-example" launch_configuration = "${aws_launch_configuration.as_conf.name}" - - lifecycle { - create_before_destroy = true - } } ```