Fixes TestAccAWSAutoscalingLifecycleHook_omitDefaultResult
This commit is contained in:
parent
b3cc7ea4cf
commit
6f9570b114
|
@ -202,7 +202,7 @@ resource "aws_launch_configuration" "foobar" {
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_sqs_queue" "foobar" {
|
resource "aws_sqs_queue" "foobar" {
|
||||||
name = "foobar"
|
name = "foobar-%d"
|
||||||
delay_seconds = 90
|
delay_seconds = 90
|
||||||
max_message_size = 2048
|
max_message_size = 2048
|
||||||
message_retention_seconds = 86400
|
message_retention_seconds = 86400
|
||||||
|
@ -225,7 +225,7 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_iam_role_policy" "foobar" {
|
resource "aws_iam_role_policy" "foobar" {
|
||||||
name = "foobar"
|
name = "foobar-%d"
|
||||||
role = "${aws_iam_role.foobar.id}"
|
role = "${aws_iam_role.foobar.id}"
|
||||||
|
|
||||||
policy = <<EOF
|
policy = <<EOF
|
||||||
|
@ -265,7 +265,7 @@ resource "aws_autoscaling_group" "foobar" {
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_autoscaling_lifecycle_hook" "foobar" {
|
resource "aws_autoscaling_lifecycle_hook" "foobar" {
|
||||||
name = "foobar"
|
name = "foobar-%d"
|
||||||
autoscaling_group_name = "${aws_autoscaling_group.foobar.name}"
|
autoscaling_group_name = "${aws_autoscaling_group.foobar.name}"
|
||||||
heartbeat_timeout = 2000
|
heartbeat_timeout = 2000
|
||||||
lifecycle_transition = "autoscaling:EC2_INSTANCE_LAUNCHING"
|
lifecycle_transition = "autoscaling:EC2_INSTANCE_LAUNCHING"
|
||||||
|
@ -278,5 +278,5 @@ EOF
|
||||||
|
|
||||||
notification_target_arn = "${aws_sqs_queue.foobar.arn}"
|
notification_target_arn = "${aws_sqs_queue.foobar.arn}"
|
||||||
role_arn = "${aws_iam_role.foobar.arn}"
|
role_arn = "${aws_iam_role.foobar.arn}"
|
||||||
}`, name, rInt, name)
|
}`, name, rInt, rInt, rInt, name, rInt)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue