From a6c29e4c0052c34237e2bda0a78d2a5578485a20 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 | 11 +++++++++-- 1 file changed, 9 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..16688b08962e9 100644 --- a/packages/@aws-cdk/aws-ec2-alpha/README.md +++ b/packages/@aws-cdk/aws-ec2-alpha/README.md @@ -272,11 +272,18 @@ 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', { + vpcId: 'MockVpcBid', + vpcCidrBlock: '10.1.0.0/16', + region: 'us-west-2', + ownerAccountId: '111111111111', + }); + + const peeringConnection = vpcA.createPeeringConnection('sameAccountCrossRegionPeering', { acceptorVpc: vpcB, });