File tree 1 file changed +5
-4
lines changed
packages/aws-lambda/test/integration_test
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -453,7 +453,8 @@ function registerTests(handlerDefinitionPath, reduced) {
453
453
} ) ;
454
454
455
455
describeOrSkipIfReduced ( reduced ) ( '[with decryption] succeeds' , ( ) => {
456
- const AWS = require ( '@aws-sdk/client-ssm' ) ;
456
+ const AWSssm = require ( '@aws-sdk/client-ssm' ) ;
457
+ const AWSkms = require ( '@aws-sdk/client-kms' ) ;
457
458
let kmsKeyId ;
458
459
459
460
// - INSTANA_ENDPOINT_URL is configured
@@ -489,7 +490,7 @@ function registerTests(handlerDefinitionPath, reduced) {
489
490
} ) ;
490
491
491
492
after ( callback => {
492
- const kms = new AWS . KMS ( { region : awsRegion } ) ;
493
+ const kms = new AWSkms . KMS ( { region : awsRegion } ) ;
493
494
kms . scheduleKeyDeletion (
494
495
{
495
496
KeyId : kmsKeyId ,
@@ -506,8 +507,8 @@ function registerTests(handlerDefinitionPath, reduced) {
506
507
} ) ;
507
508
508
509
before ( callback => {
509
- const ssm = new AWS . SSM ( { region : awsRegion } ) ;
510
- const kms = new AWS . KMS ( { region : awsRegion } ) ;
510
+ const ssm = new AWSssm . SSM ( { region : awsRegion } ) ;
511
+ const kms = new AWSkms . KMS ( { region : awsRegion } ) ;
511
512
512
513
kms . createKey ( { } , ( kmsErr , data ) => {
513
514
if ( kmsErr ) {
You can’t perform that action at this time.
0 commit comments