You are viewing an outdated version of provider-aws.Go to Latest
crossplane-contrib/provider-aws@v0.33.0
TaskDefinition
ecs.aws.crossplane.io
TaskDefinition
crossplane-contrib/provider-aws@v0.33.0ecs.aws.crossplane.io

TaskDefinition is the Schema for the TaskDefinitions API

Type

CRD

Group

ecs.aws.crossplane.io

Version

v1alpha1

apiVersion: ecs.aws.crossplane.io/v1alpha1

kind: TaskDefinition

API Documentation
apiVersion
string
kind
string
metadata
object
spec
object
object

TaskDefinitionSpec defines the desired state of TaskDefinition

forProvider
requiredobject
requiredobject

TaskDefinitionParameters defines the desired state of TaskDefinition

requiredarray

A list of container definitions in JSON format that describe the different containers that make up your task.

command
array
array

No description provided.

cpu
integer
array

No description provided.

array

No description provided.

array

No description provided.

array

No description provided.

array

No description provided.

array

No description provided.

name
string
value
string
array

No description provided.

type_
string
value
string
essential
boolean
array

No description provided.

hostname
string
ipAddress
string
object

The FireLens configuration for the container. This is used to specify and configure a log router for container logs. For more information, see Custom Log Routing (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) in the Amazon Elastic Container Service Developer Guide.

options
object
type_
string
object

An object representing a container health check. Health check parameters that are specified in a container definition override any Docker health checks that exist in the container image (such as those specified in a parent image or from the image's Dockerfile). You can view the health status of both individual containers and a task with the DescribeTasks API operation or when viewing the task details in the console. The following describes the possible healthStatus values for a container:

  • HEALTHY-The container health check has passed successfully.
  • UNHEALTHY-The container health check has failed.
  • UNKNOWN-The container health check is being evaluated or there is no container health check defined. The following describes the possible healthStatus values for a task. The container health check status of nonessential containers do not have an effect on the health status of a task.
  • HEALTHY-All essential containers within the task have passed their health checks.
  • UNHEALTHY-One or more essential containers have failed their health check.
  • UNKNOWN-The essential containers within the task are still having their health checks evaluated or there are no container health checks defined. If a task is run manually, and not as part of a service, the task will continue its lifecycle regardless of its health status. For tasks that are part of a service, if the task reports as unhealthy then the task will be stopped and the service scheduler will replace it. The following are notes about container health check support:
  • Container health checks require version 1.17.0 or greater of the Amazon ECS container agent. For more information, see Updating the Amazon ECS Container Agent (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html).
  • Container health checks are supported for Fargate tasks if you are using platform version 1.1.0 or greater. For more information, see Fargate Platform Versions (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html).
  • Container health checks are not supported for tasks that are part of a service that is configured to use a Classic Load Balancer.
command
array
array

No description provided.

interval
integer
retries
integer
timeout
integer
hostname
string
image
string
links
array
array

No description provided.

object

Linux-specific options that are applied to the container, such as Linux KernelCapabilities.

object

The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker. For more information on the default capabilities and the non-default available capabilities, see Runtime privilege and Linux capabilities (https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities) in the Docker run reference. For more detailed information on these Linux capabilities, see the capabilities(7) (http://man7.org/linux/man-pages/man7/capabilities.7.html) Linux manual page.

add
array
array

No description provided.

drop
array
array

No description provided.

devices
array
array

No description provided.

hostPath
string
array

No description provided.

maxSwap
integer
swappiness
integer
tmpfs
array
array

No description provided.

array

No description provided.

size
integer
object

The log configuration for the container. This parameter maps to LogConfig in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) and the --log-driver option to docker run (https://docs.docker.com/engine/reference/commandline/run/). By default, containers use the same logging driver that the Docker daemon uses; however the container may use a different logging driver than the Docker daemon by specifying a log driver configuration in the container definition. For more information on the options for different supported log drivers, see Configure logging drivers (https://docs.docker.com/engine/admin/logging/overview/) in the Docker documentation. The following should be noted when specifying a log configuration for your containers:

  • Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the valid values below). Additional log drivers may be available in future releases of the Amazon ECS container agent.
  • This parameter requires version 1.18 of the Docker Remote API or greater on your container instance.
  • For tasks hosted on Amazon EC2 instances, the Amazon ECS container agent must register the available logging drivers with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that instance can use these log configuration options. For more information, see Amazon ECS container agent configuration (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) in the Amazon Elastic Container Service Developer Guide.
  • For tasks on Fargate, because you do not have access to the underlying infrastructure your tasks are hosted on, any additional software needed will have to be installed outside of the task. For example, the Fluentd output aggregators or a remote host running Logstash to send Gelf logs to.
logDriver
string
options
object
array

No description provided.

name
string
valueFrom
string
memory
integer
array

No description provided.

name
string
array

No description provided.

hostPort
integer
protocol
string
privileged
boolean
object

The repository credentials for private registry authentication.

array

No description provided.

type_
string
value
string
secrets
array
array

No description provided.

name
string
valueFrom
string
array

No description provided.

namespace
string
value
string
ulimits
array
array

No description provided.

hardLimit
integer
name
string
softLimit
integer
user
string
array

No description provided.

cpu
string
object

The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on Fargate. For more information, see Fargate task storage (https://docs.aws.amazon.com/AmazonECS/latest/userguide/using_data_volumes.html) in the Amazon ECS User Guide for Fargate. This parameter is only supported for tasks hosted on Fargate using the following platform versions:

  • Linux platform version 1.4.0 or later.
  • Windows platform version 1.0.0 or later.
sizeInGiB
integer
object

A Reference to a named object.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

A Selector selects an object.

policy
object
object

Policies for selection.

resolve
string
family
requiredstring
array

The Elastic Inference accelerators to use for the containers in the task.

ipcMode
string
memory
string
pidMode
string
array

An array of placement constraint objects to use for the task. You can specify a maximum of 10 constraints per task (this limit includes constraints in the task definition and those specified at runtime).

type_
string
object

The configuration details for the App Mesh proxy. For tasks hosted on Amazon EC2 instances, the container instances require at least version 1.26.0 of the container agent and at least version 1.26.0-1 of the ecs-init package to enable a proxy configuration. If your container instances are launched from the Amazon ECS-optimized AMI version 20190301 or later, then they contain the required versions of the container agent and ecs-init. For more information, see Amazon ECS-optimized AMI versions (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-ami-versions.html) in the Amazon Elastic Container Service Developer Guide.

array

No description provided.

name
string
value
string
type_
string
region
requiredstring
array

The task launch type that Amazon ECS should validate the task definition against. A client exception is returned if the task definition doesn't validate against the compatibilities specified. If no value is specified, the parameter is omitted from the response.

object

The operating system that your tasks definitions run on. A platform family is specified only for tasks using the Fargate launch type. When you specify a task definition in a service, this value must match the runtimePlatform value of the service.

tags
array
array

The metadata that you apply to the task definition to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. The following basic restrictions apply to tags:

  • Maximum number of tags per resource - 50
  • For each resource, each tag key must be unique, and each tag key can have only one value.
  • Maximum key length - 128 Unicode characters in UTF-8
  • Maximum value length - 256 Unicode characters in UTF-8
  • If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
  • Tag keys and values are case-sensitive.
  • Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
key
string
value
string
object

A Reference to a named object.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

A Selector selects an object.

policy
object
object

Policies for selection.

resolve
string
volumes
array
array

No description provided.

object

This parameter is specified when you are using Docker volumes. Docker volumes are only supported when you are using the EC2 launch type. Windows containers only support the use of the local driver. To use bind mounts, specify a host instead.

driver
string
labels
object
scope
string
object

This parameter is specified when you are using an Amazon Elastic File System file system for task storage. For more information, see Amazon EFS Volumes (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/efs-volumes.html) in the Amazon Elastic Container Service Developer Guide.

object

The authorization configuration details for the Amazon EFS file system.

object

A Reference to a named object.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

A Selector selects an object.

policy
object
object

Policies for selection.

resolve
string
iam
string
object

A Reference to a named object.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

A Selector selects an object.

policy
object
object

Policies for selection.

resolve
string
object

This parameter is specified when you are using Amazon FSx for Windows File Server (https://docs.aws.amazon.com/fsx/latest/WindowsGuide/what-is.html) file system for task storage. For more information and the input format, see Amazon FSx for Windows File Server Volumes (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/wfsx-volumes.html) in the Amazon Elastic Container Service Developer Guide.

object

The authorization configuration details for Amazon FSx for Windows File Server file system. See FSxWindowsFileServerVolumeConfiguration (https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_FSxWindowsFileServerVolumeConfiguration.html) in the Amazon Elastic Container Service API Reference. For more information and the input format, see Amazon FSx for Windows File Server Volumes (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/wfsx-volumes.html) in the Amazon Elastic Container Service Developer Guide.

host
object
object

Details on a container instance bind mount host volume.

name
requiredstring
object

ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.

configRef
object
object

SecretStoreConfigRef specifies which secret store config should be used for this ConnectionSecret.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
metadata
object
object

Metadata is the metadata for connection secret.

labels
object
type
string
name
requiredstring
object

WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.

name
requiredstring
namespace
requiredstring
status
object
object

TaskDefinitionStatus defines the observed state of TaskDefinition.

object

TaskDefinitionObservation defines the observed state of TaskDefinition

object

The full description of the registered task definition.

array

No description provided.

array

No description provided.

command
array
array

No description provided.

cpu
integer
array

No description provided.

array

No description provided.

array

No description provided.

array

No description provided.

array

No description provided.

array

No description provided.

name
string
value
string
array

No description provided.

type_
string
value
string
essential
boolean
array

No description provided.

hostname
string
ipAddress
string
object

The FireLens configuration for the container. This is used to specify and configure a log router for container logs. For more information, see Custom Log Routing (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) in the Amazon Elastic Container Service Developer Guide.

options
object
type_
string
object

An object representing a container health check. Health check parameters that are specified in a container definition override any Docker health checks that exist in the container image (such as those specified in a parent image or from the image's Dockerfile). You can view the health status of both individual containers and a task with the DescribeTasks API operation or when viewing the task details in the console. The following describes the possible healthStatus values for a container:

  • HEALTHY-The container health check has passed successfully.
  • UNHEALTHY-The container health check has failed.
  • UNKNOWN-The container health check is being evaluated or there is no container health check defined. The following describes the possible healthStatus values for a task. The container health check status of nonessential containers do not have an effect on the health status of a task.
  • HEALTHY-All essential containers within the task have passed their health checks.
  • UNHEALTHY-One or more essential containers have failed their health check.
  • UNKNOWN-The essential containers within the task are still having their health checks evaluated or there are no container health checks defined. If a task is run manually, and not as part of a service, the task will continue its lifecycle regardless of its health status. For tasks that are part of a service, if the task reports as unhealthy then the task will be stopped and the service scheduler will replace it. The following are notes about container health check support:
  • Container health checks require version 1.17.0 or greater of the Amazon ECS container agent. For more information, see Updating the Amazon ECS Container Agent (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html).
  • Container health checks are supported for Fargate tasks if you are using platform version 1.1.0 or greater. For more information, see Fargate Platform Versions (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html).
  • Container health checks are not supported for tasks that are part of a service that is configured to use a Classic Load Balancer.
command
array
array

No description provided.

interval
integer
retries
integer
timeout
integer
hostname
string
image
string
links
array
array

No description provided.

object

Linux-specific options that are applied to the container, such as Linux KernelCapabilities.

object

The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker. For more information on the default capabilities and the non-default available capabilities, see Runtime privilege and Linux capabilities (https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities) in the Docker run reference. For more detailed information on these Linux capabilities, see the capabilities(7) (http://man7.org/linux/man-pages/man7/capabilities.7.html) Linux manual page.

add
array
array

No description provided.

drop
array
array

No description provided.

devices
array
array

No description provided.

hostPath
string
array

No description provided.

maxSwap
integer
swappiness
integer
tmpfs
array
array

No description provided.

array

No description provided.

size
integer
object

The log configuration for the container. This parameter maps to LogConfig in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) and the --log-driver option to docker run (https://docs.docker.com/engine/reference/commandline/run/). By default, containers use the same logging driver that the Docker daemon uses; however the container may use a different logging driver than the Docker daemon by specifying a log driver configuration in the container definition. For more information on the options for different supported log drivers, see Configure logging drivers (https://docs.docker.com/engine/admin/logging/overview/) in the Docker documentation. The following should be noted when specifying a log configuration for your containers:

  • Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the valid values below). Additional log drivers may be available in future releases of the Amazon ECS container agent.
  • This parameter requires version 1.18 of the Docker Remote API or greater on your container instance.
  • For tasks hosted on Amazon EC2 instances, the Amazon ECS container agent must register the available logging drivers with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that instance can use these log configuration options. For more information, see Amazon ECS container agent configuration (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) in the Amazon Elastic Container Service Developer Guide.
  • For tasks on Fargate, because you do not have access to the underlying infrastructure your tasks are hosted on, any additional software needed will have to be installed outside of the task. For example, the Fluentd output aggregators or a remote host running Logstash to send Gelf logs to.
logDriver
string
options
object
array

No description provided.

name
string
valueFrom
string
memory
integer
array

No description provided.

name
string
array

No description provided.

hostPort
integer
protocol
string
privileged
boolean
object

The repository credentials for private registry authentication.

array

No description provided.

type_
string
value
string
secrets
array
array

No description provided.

name
string
valueFrom
string
array

No description provided.

namespace
string
value
string
ulimits
array
array

No description provided.

hardLimit
integer
name
string
softLimit
integer
user
string
array

No description provided.

cpu
string
object

The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on Fargate. For more information, see Fargate task storage (https://docs.aws.amazon.com/AmazonECS/latest/userguide/using_data_volumes.html) in the Amazon ECS User Guide for Fargate. This parameter is only supported for tasks hosted on Fargate using the following platform versions:

  • Linux platform version 1.4.0 or later.
  • Windows platform version 1.0.0 or later.
sizeInGiB
integer
family
string
array

No description provided.

ipcMode
string
memory
string
pidMode
string
array

No description provided.

type_
string
object

The configuration details for the App Mesh proxy. For tasks using the EC2 launch type, the container instances require at least version 1.26.0 of the container agent and at least version 1.26.0-1 of the ecs-init package to enable a proxy configuration. If your container instances are launched from the Amazon ECS-optimized AMI version 20190301 or later, then they contain the required versions of the container agent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html)

array

No description provided.

name
string
value
string
type_
string
array

No description provided.

name
string
targetID
string
value
string
array

No description provided.

revision
integer
object

Information about the platform for the Amazon ECS service or task.

status
string
volumes
array
array

No description provided.

object

This parameter is specified when you are using Docker volumes. Docker volumes are only supported when you are using the EC2 launch type. Windows containers only support the use of the local driver. To use bind mounts, specify a host instead.

driver
string
labels
object
scope
string
object

This parameter is specified when you are using an Amazon Elastic File System file system for task storage. For more information, see Amazon EFS Volumes (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/efs-volumes.html) in the Amazon Elastic Container Service Developer Guide.

object

The authorization configuration details for the Amazon EFS file system.

iam
string
object

This parameter is specified when you are using Amazon FSx for Windows File Server (https://docs.aws.amazon.com/fsx/latest/WindowsGuide/what-is.html) file system for task storage. For more information and the input format, see Amazon FSx for Windows File Server Volumes (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/wfsx-volumes.html) in the Amazon Elastic Container Service Developer Guide.

object

The authorization configuration details for Amazon FSx for Windows File Server file system. See FSxWindowsFileServerVolumeConfiguration (https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_FSxWindowsFileServerVolumeConfiguration.html) in the Amazon Elastic Container Service API Reference. For more information and the input format, see Amazon FSx for Windows File Server Volumes (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/wfsx-volumes.html) in the Amazon Elastic Container Service Developer Guide.

host
object
object

Details on a container instance bind mount host volume.

name
string
array

Conditions of the resource.

lastTransitionTime
requiredstring
message
string
reason
requiredstring
status
requiredstring
type
requiredstring
Discover the building blocks for your internal cloud platform.
© 2024 Upbound, Inc.
Solutions