From 0e98202fc28ebf0e9eeef6923bf880d1f16596d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Barthelet?= Date: Wed, 23 Sep 2020 17:07:25 +0200 Subject: [PATCH] Rename depreciation message --- docs/deprecations.md | 2 +- lib/plugins/aws/package/compile/functions/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/deprecations.md b/docs/deprecations.md index cd61ace38a84..36df001ee898 100644 --- a/docs/deprecations.md +++ b/docs/deprecations.md @@ -74,7 +74,7 @@ Please use `onUnauthenticatedRequest` instead. `allowUnauthenticated` will be re Please use `bin/serverless.js` instead. `bin/serverless` will be removed with v2.0.0 -
 
+
 
## awsKmsKeyArn references diff --git a/lib/plugins/aws/package/compile/functions/index.js b/lib/plugins/aws/package/compile/functions/index.js index a834ca8cb7df..712f68c3b7c0 100644 --- a/lib/plugins/aws/package/compile/functions/index.js +++ b/lib/plugins/aws/package/compile/functions/index.js @@ -214,7 +214,7 @@ class AwsCompileFunctions { const serviceObj = this.serverless.service.serviceObject; if (serviceObj && serviceObj.awsKmsKeyArn) { this.serverless._logDeprecation( - 'SERVICE_DEPRECATED_PROPERTY_AWS_KMS_KEY_ARN', + 'AWS_KMS_KEY_ARN', 'Starting with next major version, awsKmsKeyArn service property will be replaced by provider.kmsKeyArn' ); kmsKeyArn = serviceObj.awsKmsKeyArn; @@ -224,7 +224,7 @@ class AwsCompileFunctions { } if (functionObject.awsKmsKeyArn) { this.serverless._logDeprecation( - 'FUNCTION_DEPRECATED_PROPERTY_AWS_KMS_KEY_ARN', + 'AWS_KMS_KEY_ARN', 'Starting with next major version, awsKmsKeyArn function property will be replaced by kmsKeyArn' ); kmsKeyArn = functionObject.awsKmsKeyArn;