Register Daemon Task Definition
| ecs_register_daemon_task_definition | R Documentation |
Registers a new daemon task definition from the supplied family and containerDefinitions¶
Description¶
Registers a new daemon task definition from the supplied family and
containerDefinitions. Optionally, you can add data volumes to your
containers with the volumes parameter. For more information, see
Daemon task
definitions
in the Amazon Elastic Container Service Developer Guide.
A daemon task definition is a template that describes the containers that form a daemon. Daemons deploy cross-cutting software agents such as security monitoring, telemetry, and logging across your Amazon ECS infrastructure.
Each time you call register_daemon_task_definition, a new revision of
the daemon task definition is created. You can't modify a revision after
you register it.
Usage¶
ecs_register_daemon_task_definition(family, taskRoleArn,
executionRoleArn, containerDefinitions, cpu, memory, volumes, tags)
Arguments¶
family |
[required] You must specify a |
taskRoleArn |
The short name or full Amazon Resource Name (ARN) of the IAM role that containers in this daemon task can assume. All containers in this daemon task are granted the permissions that are specified in this role. |
executionRoleArn |
The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make Amazon Web Services API calls on your behalf. The task execution role is required for daemon tasks that pull container images from Amazon ECR or send container logs to CloudWatch. |
containerDefinitions |
[required] A list of container definitions in JSON format that describe the containers that make up your daemon task. |
cpu |
The number of CPU units used by the daemon task. It can be
expressed as an integer using CPU units (for example,
|
memory |
The amount of memory (in MiB) used by the daemon task. It can be
expressed as an integer using MiB (for example,
|
volumes |
A list of volume definitions in JSON format that containers in your daemon task can use. |
tags |
The metadata that you apply to the daemon task definition 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:
|
Value¶
A list with the following syntax:
list(
daemonTaskDefinitionArn = "string"
)
Request syntax¶
svc$register_daemon_task_definition(
family = "string",
taskRoleArn = "string",
executionRoleArn = "string",
containerDefinitions = list(
list(
name = "string",
image = "string",
memory = 123,
memoryReservation = 123,
repositoryCredentials = list(
credentialsParameter = "string"
),
healthCheck = list(
command = list(
"string"
),
interval = 123,
timeout = 123,
retries = 123,
startPeriod = 123
),
cpu = 123,
essential = TRUE|FALSE,
entryPoint = list(
"string"
),
command = list(
"string"
),
workingDirectory = "string",
environmentFiles = list(
list(
value = "string",
type = "s3"
)
),
environment = list(
list(
name = "string",
value = "string"
)
),
secrets = list(
list(
name = "string",
valueFrom = "string"
)
),
readonlyRootFilesystem = TRUE|FALSE,
mountPoints = list(
list(
sourceVolume = "string",
containerPath = "string",
readOnly = TRUE|FALSE
)
),
logConfiguration = list(
logDriver = "json-file"|"syslog"|"journald"|"gelf"|"fluentd"|"awslogs"|"splunk"|"awsfirelens",
options = list(
"string"
),
secretOptions = list(
list(
name = "string",
valueFrom = "string"
)
)
),
firelensConfiguration = list(
type = "fluentd"|"fluentbit",
options = list(
"string"
)
),
privileged = TRUE|FALSE,
user = "string",
ulimits = list(
list(
name = "core"|"cpu"|"data"|"fsize"|"locks"|"memlock"|"msgqueue"|"nice"|"nofile"|"nproc"|"rss"|"rtprio"|"rttime"|"sigpending"|"stack",
softLimit = 123,
hardLimit = 123
)
),
linuxParameters = list(
capabilities = list(
add = list(
"string"
),
drop = list(
"string"
)
),
devices = list(
list(
hostPath = "string",
containerPath = "string",
permissions = list(
"read"|"write"|"mknod"
)
)
),
initProcessEnabled = TRUE|FALSE,
tmpfs = list(
list(
containerPath = "string",
size = 123,
mountOptions = list(
"string"
)
)
)
),
dependsOn = list(
list(
containerName = "string",
condition = "START"|"COMPLETE"|"SUCCESS"|"HEALTHY"
)
),
startTimeout = 123,
stopTimeout = 123,
systemControls = list(
list(
namespace = "string",
value = "string"
)
),
interactive = TRUE|FALSE,
pseudoTerminal = TRUE|FALSE,
restartPolicy = list(
enabled = TRUE|FALSE,
ignoredExitCodes = list(
123
),
restartAttemptPeriod = 123
)
)
),
cpu = "string",
memory = "string",
volumes = list(
list(
name = "string",
host = list(
sourcePath = "string"
)
)
),
tags = list(
list(
key = "string",
value = "string"
)
)
)