@vyriy/stack 0.7.5 → 0.7.7
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 +2 -0
- package/lambda/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -220,6 +220,8 @@ This example wires a Lambda-backed REST API to an API Gateway custom domain:
|
|
|
220
220
|
- map the API to a custom domain
|
|
221
221
|
- create a Route 53 alias record for the API Gateway domain
|
|
222
222
|
|
|
223
|
+
When `createLambda` receives `functionName`, its log group uses the classic `/aws/lambda/<function-name>` name.
|
|
224
|
+
|
|
223
225
|
Edge API Gateway custom domains use edge-optimized CloudFront distributions, so keep the certificate in `us-east-1`.
|
|
224
226
|
|
|
225
227
|
```ts
|
package/lambda/index.js
CHANGED
|
@@ -17,6 +17,7 @@ export const createLambda = (scope, id, props) => {
|
|
|
17
17
|
...environment,
|
|
18
18
|
},
|
|
19
19
|
logGroup: new LogGroup(scope, `${id}LogGroup`, {
|
|
20
|
+
logGroupName: functionName === undefined ? undefined : `/aws/lambda/${functionName}`,
|
|
20
21
|
retention: RetentionDays.ONE_WEEK,
|
|
21
22
|
removalPolicy: RemovalPolicy.DESTROY,
|
|
22
23
|
}),
|