cdk-nextjs
Version:
Deploy Next.js apps on AWS with CDK
10 lines (9 loc) • 362 B
TypeScript
import type { CloudFormationCustomResourceHandler } from "aws-lambda";
/**
* Performs:
* 1. CloudFront Invalidation
* 2. Prune EFS old BUILD_ID directories
* 3. Prunes objects in S3 that do not have metadata with current BUILD_ID and
* were modified over `msTtl` ago (default 30 days).
*/
export declare const handler: CloudFormationCustomResourceHandler;