Merge pull request #13713 from hashicorp/p-aws-autoscaling-lifecycle-hook-test
TestAccAWSAutoscalingLifecycleHook_omitDefaultResult
This commit is contained in:
commit
6c2a37a5d2
|
@ -202,7 +202,7 @@ resource "aws_launch_configuration" "foobar" {
|
|||
}
|
||||
|
||||
resource "aws_sqs_queue" "foobar" {
|
||||
name = "foobar"
|
||||
name = "foobar-%d"
|
||||
delay_seconds = 90
|
||||
max_message_size = 2048
|
||||
message_retention_seconds = 86400
|
||||
|
@ -225,7 +225,7 @@ EOF
|
|||
}
|
||||
|
||||
resource "aws_iam_role_policy" "foobar" {
|
||||
name = "foobar"
|
||||
name = "foobar-%d"
|
||||
role = "${aws_iam_role.foobar.id}"
|
||||
|
||||
policy = <<EOF
|
||||
|
@ -265,7 +265,7 @@ resource "aws_autoscaling_group" "foobar" {
|
|||
}
|
||||
|
||||
resource "aws_autoscaling_lifecycle_hook" "foobar" {
|
||||
name = "foobar"
|
||||
name = "foobar-%d"
|
||||
autoscaling_group_name = "${aws_autoscaling_group.foobar.name}"
|
||||
heartbeat_timeout = 2000
|
||||
lifecycle_transition = "autoscaling:EC2_INSTANCE_LAUNCHING"
|
||||
|
@ -278,5 +278,5 @@ EOF
|
|||
|
||||
notification_target_arn = "${aws_sqs_queue.foobar.arn}"
|
||||
role_arn = "${aws_iam_role.foobar.arn}"
|
||||
}`, name, rInt, name)
|
||||
}`, name, rInt, rInt, rInt, name, rInt)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue