Create Daemon
| ecs_create_daemon | R Documentation |
Creates a new daemon in the specified cluster and capacity providers¶
Description¶
Creates a new daemon in the specified cluster and capacity providers. A daemon deploys cross-cutting software agents such as security monitoring, telemetry, and logging independently across your Amazon ECS infrastructure.
Amazon ECS deploys exactly one daemon task on each container instance of the specified capacity providers. When a container instance registers with the cluster, Amazon ECS automatically starts daemon tasks. Amazon ECS starts a daemon task before scheduling other tasks.
Daemons are essential for instance health - if a daemon task stops, Amazon ECS automatically drains and replaces that container instance.
ECS Managed Daemons is only supported for Amazon ECS Managed Instances Capacity Providers.
Usage¶
ecs_create_daemon(daemonName, clusterArn, daemonTaskDefinitionArn,
capacityProviderArns, deploymentConfiguration, tags, propagateTags,
enableECSManagedTags, enableExecuteCommand, clientToken)
Arguments¶
daemonName |
[required] The name of the daemon. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. |
clusterArn |
The Amazon Resource Name (ARN) of the cluster to create the daemon in. |
daemonTaskDefinitionArn |
[required] The Amazon Resource Name (ARN) of the daemon task definition to use for the daemon. |
capacityProviderArns |
[required] The Amazon Resource Names (ARNs) of the capacity providers to associate with the daemon. The daemon deploys tasks on container instances managed by these capacity providers. |
deploymentConfiguration |
Optional deployment parameters that control how the daemon rolls out updates, including the drain percentage, alarm-based rollback, and bake time. |
tags |
The metadata that you apply to the daemon to help you categorize and organize them. Each tag consists of a key and an optional value. You define both of them. The following basic restrictions apply to tags:
|
propagateTags |
Specifies whether to propagate the tags from the daemon to the
daemon tasks. If you don't specify a value, the tags aren't propagated.
You can only propagate tags to daemon tasks during task creation. To add
tags to a task after task creation, use the |
enableECSManagedTags |
Specifies whether to turn on Amazon ECS managed tags for the tasks in the daemon. For more information, see Tagging your Amazon ECS resources in the Amazon Elastic Container Service Developer Guide. |
enableExecuteCommand |
Determines whether the execute command functionality is turned on
for the daemon. If |
clientToken |
An identifier that you provide to ensure the idempotency of the request. It must be unique and is case sensitive. Up to 36 ASCII characters in the range of 33-126 (inclusive) are allowed. |
Value¶
A list with the following syntax:
list(
daemonArn = "string",
status = "ACTIVE"|"DELETE_IN_PROGRESS",
createdAt = as.POSIXct(
"2015-01-01"
),
deploymentArn = "string"
)
Request syntax¶
svc$create_daemon(
daemonName = "string",
clusterArn = "string",
daemonTaskDefinitionArn = "string",
capacityProviderArns = list(
"string"
),
deploymentConfiguration = list(
drainPercent = 123.0,
alarms = list(
alarmNames = list(
"string"
),
enable = TRUE|FALSE
),
bakeTimeInMinutes = 123
),
tags = list(
list(
key = "string",
value = "string"
)
),
propagateTags = "DAEMON"|"NONE",
enableECSManagedTags = TRUE|FALSE,
enableExecuteCommand = TRUE|FALSE,
clientToken = "string"
)