cdk-turborepo-remote-cache
Version:
Deploy turborepo-remote-cache serverless on aws
30 lines (29 loc) • 852 B
TypeScript
import type { Stack } from 'aws-cdk-lib';
import { aws_lambda, aws_s3 } from 'aws-cdk-lib';
import { Construct } from 'constructs';
export interface TurborepoRemoteCacheProps {
/**
* An existing bucket to use for hosting the cache.
* @default create a new bucket
*/
readonly bucket?: aws_s3.Bucket;
/**
* The secret token to use for authenticating requests.
*/
readonly secretToken: string;
}
export declare class TurborepoRemoteCache extends Construct {
/**
* The lambda handler function.
*/
lambdaHandler: aws_lambda.Function;
/**
* The bucket used for hosting the cache.
*/
bucket: aws_s3.Bucket;
/**
* The URL of the lambda function.
*/
functionUrl: aws_lambda.FunctionUrl;
constructor(scope: Stack, id: string, props: TurborepoRemoteCacheProps);
}