mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
provider/aws: Avoid IP space overlap in EIP acc test (#14519)
This commit is contained in:
parent
30ea3aee12
commit
ba7f1aec1e
@ -160,6 +160,7 @@ resource "aws_instance" "foo" {
|
|||||||
availability_zone = "us-west-2a"
|
availability_zone = "us-west-2a"
|
||||||
instance_type = "t1.micro"
|
instance_type = "t1.micro"
|
||||||
subnet_id = "${aws_subnet.sub.id}"
|
subnet_id = "${aws_subnet.sub.id}"
|
||||||
|
private_ip = "192.168.0.${count.index+10}"
|
||||||
}
|
}
|
||||||
resource "aws_eip" "bar" {
|
resource "aws_eip" "bar" {
|
||||||
count = 3
|
count = 3
|
||||||
@ -181,7 +182,7 @@ resource "aws_eip_association" "to_eni" {
|
|||||||
}
|
}
|
||||||
resource "aws_network_interface" "baz" {
|
resource "aws_network_interface" "baz" {
|
||||||
subnet_id = "${aws_subnet.sub.id}"
|
subnet_id = "${aws_subnet.sub.id}"
|
||||||
private_ips = ["192.168.0.10"]
|
private_ips = ["192.168.0.50"]
|
||||||
depends_on = ["aws_instance.foo"]
|
depends_on = ["aws_instance.foo"]
|
||||||
attachment {
|
attachment {
|
||||||
instance = "${aws_instance.foo.0.id}"
|
instance = "${aws_instance.foo.0.id}"
|
||||||
|
Loading…
Reference in New Issue
Block a user