From 9aac3800b9952eaf70042c259a25a0269d7431ae Mon Sep 17 00:00:00 2001 From: shikha372 Date: Tue, 19 Nov 2024 12:00:32 -0800 Subject: [PATCH] fixing Readme --- packages/@aws-cdk/aws-ec2-alpha/README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/@aws-cdk/aws-ec2-alpha/README.md b/packages/@aws-cdk/aws-ec2-alpha/README.md index 334fb4553641f..683cad1ea5c76 100644 --- a/packages/@aws-cdk/aws-ec2-alpha/README.md +++ b/packages/@aws-cdk/aws-ec2-alpha/README.md @@ -272,11 +272,19 @@ const vpcA = new VpcV2(stackA, 'VpcA', { primaryAddressBlock: IpAddresses.ipv4('10.0.0.0/16'), }); -const vpcB = new VpcV2(stackB, 'VpcB', { +new VpcV2(stackB, 'VpcB', { primaryAddressBlock: IpAddresses.ipv4('10.1.0.0/16'), }); -// TODO: Lookup vpcB in stackA +const vpcB = VpcV2.fromVpcV2Attributes(stackA, 'ImportedVpcB', { + //Replace VPC Id before running integ test again + vpcId: 'MockVpcBid', + vpcCidrBlock: '10.1.0.0/16', + region: 'us-west-2', + ownerAccountId: '111111111111', + }); + + const peeringConnection = vpcA.createPeeringConnection('sameAccountCrossRegionPeering', { acceptorVpc: vpcB, });