@vyriy/stack 0.7.4 → 0.7.6

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 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
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vyriy/stack",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "description": "AWS CDK stack helpers for Vyriy infrastructure",
5
5
  "type": "module",
6
6
  "dependencies": {