A Cluster is a general purpose ECS cluster configured to run in a provided Network.

Hierarchy

  • unknown
    • Cluster

Implements

Constructors

Properties

autoScalingGroups: AutoScalingGroup[] = []
cluster: Cluster
extraBootcmdLines: (() => Input<UserDataLine[]>)

Type declaration

id: Output<string>
securityGroups: SecurityGroup[]

Security groups associated with this this ECS Cluster.

The network in which to create this cluster.

Methods

  • Creates a new autoscaling group and adds it to the list of autoscaling groups targeting this cluster. The autoscaling group will be created with is network set to the same network as this cluster as well as using this cluster to initialize both its securityGroups and launchConfiguration userData.

    Parameters

    Returns AutoScalingGroup

  • Gets or creates a cluster that can be used by default for the current aws account and region. The cluster will use the default Vpc for the account and will be provisioned with a security group created by [createDefaultSecurityGroup].

    Parameters

    • Optional opts: any

    Returns Cluster

Generated using TypeDoc