File tree 2 files changed +3
-2
lines changed
packages/aws-cdk-lib/aws-rds
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,8 @@ export class ProxyTarget {
104
104
105
105
const engineFamily = engine . engineFamily ;
106
106
if ( ! engineFamily ) {
107
- throw new Error ( `Engine '${ engineDescription ( engine ) } ' does not support proxies` ) ;
107
+ throw new Error ( 'RDS proxies require an engine family to be specified on the database cluster or instance. ' +
108
+ `No family specified for engine '${ engineDescription ( engine ) } '` ) ;
108
109
}
109
110
110
111
// allow connecting to the Cluster/Instance from the Proxy
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ describe('proxy', () => {
203
203
vpc,
204
204
secrets : [ new secretsmanager . Secret ( stack , 'Secret' ) ] ,
205
205
} ) ;
206
- } ) . toThrow ( / E n g i n e ' m a r i a d b - 1 0 \. 0 \. 2 4 ' d o e s n o t s u p p o r t p r o x i e s / ) ;
206
+ } ) . toThrow ( / R D S p r o x i e s r e q u i r e a n e n g i n e f a m i l y t o b e s p e c i f i e d o n t h e d a t a b a s e c l u s t e r o r i n s t a n c e . N o f a m i l y s p e c i f i e d f o r e n g i n e ' m a r i a d b - 1 0 \. 0 \. 2 4 ' / ) ;
207
207
} ) ;
208
208
209
209
test ( 'correctly creates a proxy for an imported Cluster if its engine is known' , ( ) => {
You can’t perform that action at this time.
0 commit comments