From ba7f1aec1ee465171932013e8ab336165d9e6ebb Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Tue, 16 May 2017 07:06:53 +0200 Subject: [PATCH] provider/aws: Avoid IP space overlap in EIP acc test (#14519) --- builtin/providers/aws/resource_aws_eip_association_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_eip_association_test.go b/builtin/providers/aws/resource_aws_eip_association_test.go index 362de33a64..ea41a8a332 100644 --- a/builtin/providers/aws/resource_aws_eip_association_test.go +++ b/builtin/providers/aws/resource_aws_eip_association_test.go @@ -160,6 +160,7 @@ resource "aws_instance" "foo" { availability_zone = "us-west-2a" instance_type = "t1.micro" subnet_id = "${aws_subnet.sub.id}" + private_ip = "192.168.0.${count.index+10}" } resource "aws_eip" "bar" { count = 3 @@ -181,7 +182,7 @@ resource "aws_eip_association" "to_eni" { } resource "aws_network_interface" "baz" { subnet_id = "${aws_subnet.sub.id}" - private_ips = ["192.168.0.10"] + private_ips = ["192.168.0.50"] depends_on = ["aws_instance.foo"] attachment { instance = "${aws_instance.foo.0.id}"