jetbridge / jetbridge/cdk-nextjs
Update use of deprecated CDK APIs
- Dominant language
- TypeScript
- Stars
- 362
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
Seeing the following warnings whenever we run a deploy using **aws-cdk-lib 2.23.0**:
```
[WARNING] aws-cdk-lib.aws_lambda.FunctionOptions#logRetention is deprecated.
use `logGroup` instead
This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_cloudfront_origins.S3Origin is deprecated.
Use `S3BucketOrigin` or `S3StaticWebsiteOrigin` instead.
This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_cloudfront_origins.S3Origin#bind is deprecated.
Use `S3BucketOrigin` or `S3StaticWebsiteOrigin` instead.
This API will be removed in the next major release.
```
Looks like the following code is causing these:
https://github.com/jetbridge/cdk-nextjs/blob/c23376b0f32af80d0f03d6296e38a600f7f5c57e/src/NextjsRevalidation.ts#L173
https://github.com/jetbridge/cdk-nextjs/blob/c23376b0f32af80d0f03d6296e38a600f7f5c57e/src/NextjsDistribution.ts#L206
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.