rds: AuroraClusterInstance ignores publiclyAccessible set to false when cluster is placed in public subnet #28037
Labels
@aws-cdk/aws-rds
Related to Amazon Relational Database
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
Even though publiclyAccessible set to false, the value is ignored if the cluster is placed in a public subnet.
There are legitimate cases where a cluster could be placed in a public subnet, but it still should not have a public IP address.
Expected Behavior
The publiclyAccessible attribute should be honored if it is set, even if it is false.
Current Behavior
If the vpc and the vpcSubnets.subnetType is set to PUBLIC it ignores the value provided in publiclyAccessible attribute.
The documentation does not specify that it will be ignored.
Reproduction Steps
Possible Solution
Check if the publiclyAccessible attribute is NOT undefined, then set the value based on the vpc and vpc subnets.
Additional Information/Context
No response
CDK CLI Version
2.108.1
Framework Version
2.108.1
Node.js Version
18.18.2
OS
macOS 14.0 (23A344)
Language
TypeScript
Language Version
TypeScript (4.9.5)
Other information
No response
The text was updated successfully, but these errors were encountered: