[aws-ec2] Isn't IVpc
supposed to be implemented by users?
#11406
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/large
Large work item – several weeks of effort
feature-request
A feature should be added or improved.
p1
Current
IVpc
has both properties and methods. These methods are implemented inVpcBase
, and they are reused throughout theaws-cdk
codebases.I've built my
MyVpc
construct with L1 constructs from scratch to match my requirements. (#5927 (comment)) As I've commented, they don't play well with existing L2 constructs.In order to plug my
MyVpc
into other L2 constructs, I have to re-implement methods that are already implemented inVpcBase
. It is tedious and worrisome.I'm getting an impression that
IVpc
isn't supposed to be implemented by users.Use Case
Proposed Solution
To lower the barrier of implementing
IVpc
, we should improve the reusability of methods that are implemented inVpcBase
.IVpcProps
fromIVpc
to only contain properties.VpcBase
to only depend onIVpcProps
, notthis IVpc
.IVpc
method usages with the methods that are refactored in 2.Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: