class Ec2Service (construct)
This creates a service using the EC2 launch type on an ECS cluster.
new Ec2Service(scope: Construct, id: string, props: Ec2ServiceProps)
Constructs a new instance of the Ec2Service class.
|cluster||The name of the cluster that hosts the service.|
|task||The task definition to use for tasks in the service.|
|assign||Specifies whether the task's elastic network interface receives a public IP address.|
|cloud||The options for configuring an Amazon ECS service to use service discovery.|
|daemon?||Specifies whether the service will use the daemon scheduling strategy.|
|deployment||Specifies which deployment controller to use for the service.|
|desired||The desired number of instantiations of the task definition to keep running on the service.|
|enable||Specifies whether to enable Amazon ECS managed tags for the tasks within the service.|
|health||The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started.|
|max||The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment.|
|min||The minimum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that must continue to run and remain healthy during a deployment.|
|placement||The placement constraints to use fo|