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 9aac380
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 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,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,
});
Expand Down

0 comments on commit 9aac380

Please sign in to comment.