Skip to content

Latest commit

 

History

History
120 lines (59 loc) · 4.07 KB

File metadata and controls

120 lines (59 loc) · 4.07 KB

API Reference

Classes

Name Description
DualAlbFargateService No description

Structs

Name Description
DualAlbFargateServiceProps No description
FargateTaskProps No description
Route53Options No description
ServiceScalingPolicy No description

class DualAlbFargateService

Implements: IConstruct, IConstruct, IConstruct, IDependable Extends: Construct

Initializer

new DualAlbFargateService(scope: Construct, id: string, props: DualAlbFargateServiceProps)

Properties

Name Type Description
externalAlb ApplicationLoadBalancer
internalAlb ApplicationLoadBalancer
vpc IVpc

struct DualAlbFargateServiceProps

Name Type Description
tasks Array<FargateTaskProps>
route53Ops? Route53Options Optional
spot? boolean create a FARGATE_SPOT only cluster.
Default: false
vpc? IVpc Optional

struct FargateTaskProps

Name Type Description
listenerPort number
task FargateTaskDefinition
capacityProviderStretegy? Array<CapacityProviderStrategy> Optional
desiredCount? number desired number of tasks for the service.
Default: 1
scalingPolicy? ServiceScalingPolicy service autoscaling policy.
Optional

struct Route53Options

Name Type Description
externalAlbRecordName? string the external ALB record name.
Default: external
internalAlbRecordName? string the internal ALB record name.
Default: internal
zoneName? string private zone name.
Default: svc.local

struct ServiceScalingPolicy

Name Type Description
maxCapacity? number max capacity for the service autoscaling.
Default: 10
requestPerTarget? number request per target.
Default: 1000
targetCpuUtilization? number target cpu utilization.
Default: 50