@@ -58,12 +58,16 @@ func TestAccVPCPeeringConnectionDataSource_id(t *testing.T) {
58
58
// resource.TestCheckResourceAttrPair(dataSourceName, "cidr_block_set.#", resourceName, "cidr_block_set.#"), // not in resource
59
59
resource .TestCheckResourceAttr (dataSourceName , "cidr_block_set.#" , "1" ),
60
60
resource .TestCheckTypeSetElemAttrPair (dataSourceName , "cidr_block_set.*.cidr_block" , requesterVpcResourceName , "cidr_block" ),
61
+ resource .TestCheckResourceAttr (dataSourceName , "ipv6_cidr_block_set.#" , "1" ),
62
+ resource .TestCheckTypeSetElemAttrPair (dataSourceName , "ipv6_cidr_block_set.*.ipv6_cidr_block" , requesterVpcResourceName , "ipv6_cidr_block" ),
61
63
// resource.TestCheckResourceAttrPair(dataSourceName, "region", resourceName, "region"), // not in resource
62
64
// resource.TestCheckResourceAttrPair(dataSourceName, "peer_cidr_block", resourceName, "peer_cidr_block"), // not in resource
63
65
resource .TestCheckResourceAttrPair (dataSourceName , "peer_cidr_block" , accepterVpcResourceName , "cidr_block" ),
64
66
// resource.TestCheckResourceAttrPair(dataSourceName, "peer_cidr_block_set.#", resourceName, "peer_cidr_block_set.#"), // not in resource
65
67
resource .TestCheckResourceAttr (dataSourceName , "peer_cidr_block_set.#" , "1" ),
66
68
resource .TestCheckTypeSetElemAttrPair (dataSourceName , "peer_cidr_block_set.*.cidr_block" , accepterVpcResourceName , "cidr_block" ),
69
+ resource .TestCheckResourceAttr (dataSourceName , "peer_ipv6_cidr_block_set.#" , "1" ),
70
+ resource .TestCheckTypeSetElemAttrPair (dataSourceName , "peer_ipv6_cidr_block_set.*.ipv6_cidr_block" , accepterVpcResourceName , "ipv6_cidr_block" ),
67
71
resource .TestCheckResourceAttrPair (dataSourceName , "peer_owner_id" , resourceName , "peer_owner_id" ),
68
72
// resource.TestCheckResourceAttrPair(dataSourceName, "peer_region", resourceName, "peer_region"), //not in resource
69
73
resource .TestCheckResourceAttrPair (dataSourceName , "peer_vpc_id" , resourceName , "peer_vpc_id" ),
@@ -187,15 +191,17 @@ data "aws_vpc_peering_connection" "test" {
187
191
func testAccVPCPeeringConnectionDataSourceConfig_id (rName string ) string {
188
192
return fmt .Sprintf (`
189
193
resource "aws_vpc" "requester" {
190
- cidr_block = "10.1.0.0/16"
194
+ cidr_block = "10.1.0.0/16"
195
+ assign_generated_ipv6_cidr_block = true
191
196
192
197
tags = {
193
198
Name = %[1]q
194
199
}
195
200
}
196
201
197
202
resource "aws_vpc" "accepter" {
198
- cidr_block = "10.2.0.0/16"
203
+ cidr_block = "10.2.0.0/16"
204
+ assign_generated_ipv6_cidr_block = true
199
205
200
206
tags = {
201
207
Name = %[1]q
0 commit comments