Register Container Instance
ecs_register_container_instance | R Documentation |
This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent¶
Description¶
This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.
Registers an EC2 instance into the specified cluster. This instance becomes available to place containers on.
Usage¶
ecs_register_container_instance(cluster, instanceIdentityDocument,
instanceIdentityDocumentSignature, totalResources, versionInfo,
containerInstanceArn, attributes, platformDevices, tags)
Arguments¶
cluster |
The short name or full Amazon Resource Name (ARN) of the cluster to register your container instance with. If you do not specify a cluster, the default cluster is assumed. |
instanceIdentityDocument |
The instance identity document for the EC2 instance to register.
This document can be found by running the following command from the
instance: |
instanceIdentityDocumentSignature |
The instance identity document signature for the EC2 instance to
register. This signature can be found by running the following command
from the instance: |
totalResources |
The resources available on the instance. |
versionInfo |
The version information for the Amazon ECS container agent and Docker daemon that runs on the container instance. |
containerInstanceArn |
The ARN of the container instance (if it was previously registered). |
attributes |
The container instance attributes that this container instance supports. |
platformDevices |
The devices that are available on the container instance. The only supported device type is a GPU. |
tags |
The metadata that you apply to the container instance to help you categorize and organize them. Each tag consists of a key and an optional value. You define both. The following basic restrictions apply to tags:
|
Value¶
A list with the following syntax:
list(
containerInstance = list(
containerInstanceArn = "string",
ec2InstanceId = "string",
capacityProviderName = "string",
version = 123,
versionInfo = list(
agentVersion = "string",
agentHash = "string",
dockerVersion = "string"
),
remainingResources = list(
list(
name = "string",
type = "string",
doubleValue = 123.0,
longValue = 123,
integerValue = 123,
stringSetValue = list(
"string"
)
)
),
registeredResources = list(
list(
name = "string",
type = "string",
doubleValue = 123.0,
longValue = 123,
integerValue = 123,
stringSetValue = list(
"string"
)
)
),
status = "string",
statusReason = "string",
agentConnected = TRUE|FALSE,
runningTasksCount = 123,
pendingTasksCount = 123,
agentUpdateStatus = "PENDING"|"STAGING"|"STAGED"|"UPDATING"|"UPDATED"|"FAILED",
attributes = list(
list(
name = "string",
value = "string",
targetType = "container-instance",
targetId = "string"
)
),
registeredAt = as.POSIXct(
"2015-01-01"
),
attachments = list(
list(
id = "string",
type = "string",
status = "string",
details = list(
list(
name = "string",
value = "string"
)
)
)
),
tags = list(
list(
key = "string",
value = "string"
)
),
healthStatus = list(
overallStatus = "OK"|"IMPAIRED"|"INSUFFICIENT_DATA"|"INITIALIZING",
details = list(
list(
type = "CONTAINER_RUNTIME",
status = "OK"|"IMPAIRED"|"INSUFFICIENT_DATA"|"INITIALIZING",
lastUpdated = as.POSIXct(
"2015-01-01"
),
lastStatusChange = as.POSIXct(
"2015-01-01"
)
)
)
)
)
)
Request syntax¶
svc$register_container_instance(
cluster = "string",
instanceIdentityDocument = "string",
instanceIdentityDocumentSignature = "string",
totalResources = list(
list(
name = "string",
type = "string",
doubleValue = 123.0,
longValue = 123,
integerValue = 123,
stringSetValue = list(
"string"
)
)
),
versionInfo = list(
agentVersion = "string",
agentHash = "string",
dockerVersion = "string"
),
containerInstanceArn = "string",
attributes = list(
list(
name = "string",
value = "string",
targetType = "container-instance",
targetId = "string"
)
),
platformDevices = list(
list(
id = "string",
type = "GPU"
)
),
tags = list(
list(
key = "string",
value = "string"
)
)
)