Skip to content

Commit

Permalink
fixing Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
shikha372 committed Nov 19, 2024
1 parent ade37c0 commit a6c29e4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/@aws-cdk/aws-ec2-alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit a6c29e4

Please sign in to comment.