Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[aws-ec2] L2 Construct - VpcPeeringConnection #9338

Open
1 of 2 tasks
civilizeddev opened this issue Jul 29, 2020 · 1 comment
Open
1 of 2 tasks

[aws-ec2] L2 Construct - VpcPeeringConnection #9338

civilizeddev opened this issue Jul 29, 2020 · 1 comment
Labels
@aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud effort/large Large work item – several weeks of effort feature-request A feature should be added or improved. p2

Comments

@civilizeddev
Copy link
Contributor

civilizeddev commented Jul 29, 2020

L2 Construct for ec2.CfnVpcPeeringConnection

Use Case

image

  • To construct a new vpc peering connection.
  • To import an existing one.
import * as ec2 from '@aws-cdk/aws-ec2'

const vpcPeeringConnection = ec2.VpcPeeringConnection.fromVpcPeeringConnectionAttributes(this, 'vpcPeeringConnection', {
  vpcPeeringConnectionId: 'pcx-01234567890abcdef',
});

const vpc: ec2.Vpc = ...

const routes = vpc.privateSubnets
  .map((_) => _.routeTable.routeTableId)
  .map((routeTableId, index) => {
    return new ec2.CfnRoute(this, `route-${index}`, {
      destinationCidrBlock: '192.168.0.0/24',
      routeTableId,
      vpcPeeringConnectionId: vpcPeeringConnection.vpcPeeringConnectionId,
    })
  })

Proposed Solution

I'll make a pull request.

Other

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

@civilizeddev civilizeddev added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jul 29, 2020
@github-actions github-actions bot added the @aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud label Jul 29, 2020
@SomayaB SomayaB added the in-progress This issue is being actively worked on. label Jul 30, 2020
@ericzbeard ericzbeard assigned rix0rrr and unassigned ericzbeard Jul 30, 2020
@rix0rrr rix0rrr added effort/large Large work item – several weeks of effort p2 labels Aug 4, 2020
@civilizeddev
Copy link
Contributor Author

@rix0rrr Is it really effort/large?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud effort/large Large work item – several weeks of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants