provider/aws: Avoid IP space overlap in EIP acc test (#14519)

This commit is contained in:
Radek Simko 2017-05-16 07:06:53 +02:00 committed by GitHub
parent 30ea3aee12
commit ba7f1aec1e
1 changed files with 2 additions and 1 deletions

View File

@ -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}"