@aws-sdk/find-v2 0.0.3 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/scanLambdaFunctions.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ Note about output:
|
|
|
39
39
|
- [N] means "aws-sdk" is not found in Lambda function.
|
|
40
40
|
- [?] means script was not able to proceed, and it emits reason.
|
|
41
41
|
|
|
42
|
-
Reading 4 functions.
|
|
42
|
+
Reading 4 functions from "us-east-2" region.
|
|
43
43
|
[N] fn-without-aws-sdk-in-bundle
|
|
44
44
|
[Y] fn-with-aws-sdk-in-bundle
|
|
45
45
|
[Y] fn-with-aws-sdk-in-package-json-deps
|
|
@@ -21,7 +21,8 @@ export const scanLambdaFunctions = async () => {
|
|
|
21
21
|
console.log(`- ${JS_SDK_V2_MARKER.Y} means "aws-sdk" is found in Lambda function, and migration is recommended.`);
|
|
22
22
|
console.log(`- ${JS_SDK_V2_MARKER.N} means "aws-sdk" is not found in Lambda function.`);
|
|
23
23
|
console.log(`- ${JS_SDK_V2_MARKER.UNKNOWN} means script was not able to proceed, and it emits reason.\n`);
|
|
24
|
-
|
|
24
|
+
const region = await client.config.region();
|
|
25
|
+
console.log(`Reading ${functionsLength} function${functionsLength > 1 ? "s" : ""} from "${region}" region.`);
|
|
25
26
|
for (const functionName of functions) {
|
|
26
27
|
await scanLambdaFunction(client, functionName);
|
|
27
28
|
}
|