You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(parameters): add parameters examples cdk and sam (#1622)
* add ssm to example
* add parameters to cdk example
* update cleanup
* add sam tempalte with dedicated uuid api gw
* added deps for examples
* clean up corructed deps
* fix test and revert back to cdk 2.73.0
* revert to previous package lock
* swtich to randomUUID
* removed unused param, bumped powertools version
* add PT_VERSION from commons instead of string variable
* add nosonar for temp resources in example
@@ -28,14 +28,7 @@ import { default as request } from 'phin';
28
28
classLambdaimplementsLambdaInterface{
29
29
@tracer.captureMethod()
30
30
publicasyncgetUuid(): Promise<string>{
31
-
// Request a sample random uuid from a webservice
32
-
constres=awaitrequest<{uuid: string}>({
33
-
url: 'https://httpbin.org/uuid',
34
-
parse: 'json',
35
-
});
36
-
const{ uuid }=res.body;
37
-
38
-
returnuuid;
31
+
returngetUuid();
39
32
}
40
33
41
34
@tracer.captureLambdaHandler({captureResponse: false})// by default the tracer would add the response as metadata on the segment, but there is a chance to hit the 64kb segment size limit. Therefore set captureResponse: false
Template.fromStack(stack).resourceCountIs('AWS::Lambda::Function',4);// The stack has 4 functions: 3 for the example, and 1 for the log retention that is deployed by CDK
8
+
Template.fromStack(stack).resourceCountIs('AWS::Lambda::Function',5);// The stack has 4 functions: 3 for the example, and 1 for the log retention that is deployed by CDK
0 commit comments