Interface EC2ServiceArgs

interface EC2ServiceArgs {
    cluster?: Cluster;
    deploymentCircuitBreaker?: any;
    deploymentController?: any;
    deploymentMaximumPercent?: any;
    deploymentMinimumHealthyPercent?: any;
    desiredCount?: any;
    enableEcsManagedTags?: any;
    enableExecuteCommand?: any;
    forceNewDeployment?: any;
    healthCheckGracePeriodSeconds?: any;
    iamRole?: any;
    loadBalancers?: any[];
    name?: any;
    orderedPlacementStrategies?: any;
    os?: any;
    placementConstraints?: any;
    propagateTags?: any;
    schedulingStrategy?: any;
    securityGroups?: any[];
    serviceRegistries?: any;
    subnets?: any;
    tags?: any;
    taskDefinition?: classic.ecs.EC2TaskDefinition;
    taskDefinitionArgs?: classic.ecs.EC2TaskDefinitionArgs;
    waitForSteadyState?: any;
}

Properties

cluster?: Cluster

Cluster this service will run in.

deploymentCircuitBreaker?: any

Configuration block for deployment circuit breaker.

deploymentController?: any

Configuration block containing deployment controller configuration.

deploymentMaximumPercent?: any

The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. Not valid when using the DAEMON scheduling strategy.

deploymentMinimumHealthyPercent?: any

The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment.

desiredCount?: any

The number of instances of the task definition to place and keep running. Defaults to 1. Do not specify if using the DAEMON scheduling strategy.

enableEcsManagedTags?: any

Specifies whether to enable Amazon ECS managed tags for the tasks within the service.

enableExecuteCommand?: any

Specifies whether to enable Amazon ECS Exec for the tasks within the service.

forceNewDeployment?: any

Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g. myimage:latest) or immediately deploy orderedPlacementStrategies and placementConstraints updates.

healthCheckGracePeriodSeconds?: any

Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 7200. Only valid for services configured to use load balancers.

iamRole?: any

ARN of the IAM role that allows Amazon ECS to make calls to your load balancer on your behalf. This parameter is required if you are using a load balancer with your service, but only if your task definition does not use the awsvpc network mode. If using awsvpc network mode, do not specify this role. If your account has already created the Amazon ECS service-linked role, that role is used by default for your service unless you specify a role here.

loadBalancers?: any[]

A load balancer block. Load balancers documented below.

name?: any

The name of the service (up to 255 letters, numbers, hyphens, and underscores)

orderedPlacementStrategies?: any

Service level strategy rules that are taken into consideration during task placement. List from top to bottom in order of precedence. The maximum number of ordered_placement_strategy blocks is 5. Defined below.

os?: any
placementConstraints?: any

rules that are taken into consideration during task placement. Maximum number of placement_constraints is 10. Defined below.

propagateTags?: any

Specifies whether to propagate the tags from the task definition or the service to the tasks. The valid values are SERVICE and TASK_DEFINITION.

schedulingStrategy?: any

The scheduling strategy to use for the service. The valid values are REPLICA and DAEMON. Defaults to REPLICA. Note that Fargate tasks do not support the DAEMON scheduling strategy.

securityGroups?: any[]

The security groups to use for the instances.

Defaults to [cluster.securityGroups] if unspecified.

serviceRegistries?: any

The service discovery registries for the service. The maximum number of service_registries blocks is 1.

subnets?: any

The subnets to connect the instances to. If unspecified then these will be the public subnets of the cluster's vpc.

tags?: any

Key-value mapping of resource tags

taskDefinition?: classic.ecs.EC2TaskDefinition

The task definition to create the service from. Either [taskDefinition] or [taskDefinitionArgs] must be provided.

taskDefinitionArgs?: classic.ecs.EC2TaskDefinitionArgs

The task definition to create the service from. Either [taskDefinition] or [taskDefinitionArgs] must be provided.

waitForSteadyState?: any

Wait for the service to reach a steady state (like aws ecs wait services-stable) before continuing. Defaults to true.

Generated using TypeDoc