(aws-rds): vpc should be optional in ServerlessCluster #17401
Labels
@aws-cdk/aws-rds
Related to Amazon Relational Database
effort/small
Small work item – less than a day of effort
feature/coverage-gap
Gaps in CloudFormation coverage by L2 constructs
feature-request
A feature should be added or improved.
p1
Description
A VPC is not mandatory to create a AWS Aurora serverless cluster. In
CfnDBCluster
,DBSubnetGroupName
andVpcSecurityGroupIds
are optional.But a VPC is required to create a
ServerlessCluster
The VPC attribute should be optional.
Use Case
When the
DataAPI
is enabled, it's possible to have a project without any direct access to the Cluster. The cluster don't need to be in a VPC (or if it's in VPC we don't need to know it). It's especially useful for serverless projects which tend to get rid of VPCs.I wish I could simply write
Proposed Solution
Make the
vpc
parameter optional. When it'sundefined
, don't create any subnet or security group and don't setDBSubnetGroupName
andVpcSecurityGroupIds
Other information
No response
Acknowledge
The text was updated successfully, but these errors were encountered: