Interface FargateServiceProps

interface FargateServiceProps {
    cluster: ICluster;
    containerPort?: number;
    cpu?: number;
    deregistrationDelay?: Duration;
    desiredCount: number;
    ecsImage: ContainerImage;
    enableCircuitBreaker?: boolean;
    environment?: Record<string, string>;
    healthCheckGracePeriod?: Duration;
    logsRetention?: RetentionDays;
    memoryLimitMiB?: number;
    overrideContainerProps?: Partial<ContainerDefinitionOptions>;
    overrideFargateServiceProps?: Partial<FargateServiceProps>;
    overrideHealthCheck?: Partial<HealthCheck>;
    overrideTargetGroupProps?: Partial<ApplicationTargetGroupProps>;
    parameters?: Parameter[];
    secrets?: Record<string, Secret>;
    serviceName: string;
    skipHealthCheckGracePeriod?: boolean;
    skipTargetGroup?: boolean;
    vpc: IVpc;
}

Properties

cluster: ICluster
containerPort?: number
8080
cpu?: number
256
deregistrationDelay?: Duration
15 seconds
desiredCount: number
ecsImage: ContainerImage
enableCircuitBreaker?: boolean
false
environment?: Record<string, string>
healthCheckGracePeriod?: Duration
60 seconds
logsRetention?: RetentionDays
2 weeks
memoryLimitMiB?: number
512
overrideContainerProps?: Partial<ContainerDefinitionOptions>
overrideFargateServiceProps?: Partial<FargateServiceProps>
overrideHealthCheck?: Partial<HealthCheck>
overrideTargetGroupProps?: Partial<ApplicationTargetGroupProps>
parameters?: Parameter[]
secrets?: Record<string, Secret>
serviceName: string
skipHealthCheckGracePeriod?: boolean

Use this as workaround when adding the service to a load balancer after it has been created. For avoiding 'Health check grace period is only valid for services configured to use load balancers' Link to GitHub issue: https://github.com/aws/aws-cdk/issues/19842

skipTargetGroup?: boolean
false
vpc: IVpc