File tree 2 files changed +2
-1
lines changed
packages/@aws-cdk/aws-rds/lib
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -438,7 +438,7 @@ abstract class DatabaseClusterNew extends DatabaseClusterBase {
438
438
const clusterParameterGroupConfig = clusterParameterGroup ?. bindToCluster ( { } ) ;
439
439
this . engine = props . engine ;
440
440
441
- const clusterIdentifier = FeatureFlags . of ( this ) . isEnabled ( cxapi . RDS_LOWERCASE_DB_IDENTIFIER )
441
+ const clusterIdentifier = FeatureFlags . of ( this ) . isEnabled ( cxapi . RDS_LOWERCASE_DB_IDENTIFIER ) && ! Token . isUnresolved ( props . clusterIdentifier )
442
442
? props . clusterIdentifier ?. toLowerCase ( )
443
443
: props . clusterIdentifier ;
444
444
Original file line number Diff line number Diff line change @@ -715,6 +715,7 @@ abstract class DatabaseInstanceNew extends DatabaseInstanceBase implements IData
715
715
}
716
716
717
717
const maybeLowercasedInstanceId = FeatureFlags . of ( this ) . isEnabled ( cxapi . RDS_LOWERCASE_DB_IDENTIFIER )
718
+ && ! Token . isUnresolved ( props . instanceIdentifier )
718
719
? props . instanceIdentifier ?. toLowerCase ( )
719
720
: props . instanceIdentifier ;
720
721
You can’t perform that action at this time.
0 commit comments