UNPKG

@scloud/cdk-patterns

Version:

Serverless CDK patterns for common infrastructure needs

27 lines (26 loc) 1.12 kB
import { Stack } from 'aws-cdk-lib'; import { Vpc } from 'aws-cdk-lib/aws-ec2'; import { ApplicationLoadBalancedFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; import { Repository } from 'aws-cdk-lib/aws-ecr'; import { IHostedZone } from 'aws-cdk-lib/aws-route53'; interface Deployment { repository: Repository; albFargateService: ApplicationLoadBalancedFargateService; vpc: Vpc; } /** * @deprecated Use FargateContainer instead * * Builds an ApplicationLoadBalancedFargateService * @param stack Parent CDK stack * @param name Base name for resources / resource IDs * @param zone DNS zone * @param environment Any environment variables * @param zeroTasks Sets task count to zero - useful if you don't have an image in ECR yet. * @param vpc Optional VPC to host the cluster in * @returns Deplyment detais */ export declare function fargate(stack: Stack, name: string, serviceName: string, zone: IHostedZone, domainName?: string, environment?: { [key: string]: string; }, repository?: Repository | undefined, tag?: string, zeroTasks?: boolean, vpc?: Vpc | undefined): Deployment; export {};