## Requirements

| Name | Version |
|------|---------|
| terraform | >= 0.13 |

## Providers

| Name | Version |
|------|---------|
| aws | n/a |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| awslogs\_create\_group | Specify whether create log group or not. | `bool` | `false` | no |
| awslogs\_group | The name of the log group where awslogs driver will send events. | `string` | n/a | yes |
| awslogs\_region | The region to which the awslogs log driver should send your Docker logs. | `string` | `"us-east-1"` | no |
| awslogs\_stream\_prefix | The stream-prefix for your logs. | `string` | `"ecs"` | no |
| command | The command that is passed to the container. | `list(string)` | `null` | no |
| common\_tags | Key-value map of resource tags. | `map(string)` | `{}` | no |
| container\_image | The image used to start the container. Images in the Docker Hub registry available by default. | `string` | n/a | yes |
| container\_name | The name of the container. Up to 255 characters ([a-z], [A-Z], [0-9], -, \_ allowed). | `string` | n/a | yes |
| cpu | The number of cpu units used by the task. | `number` | n/a | yes |
| datadog\_enabled | Specify whether you want the datadog container or not. | `bool` | `false` | no |
| dd\_apm\_enabled | Specify whether you want to use Datadog APM or not. | `bool` | `false` | no |
| dd\_awslogs\_group | The name of the log group where awslogs driver will send events from container with Datadog. | `string` | n/a | yes |
| dd\_container\_image | The image used to start the container with Datadog agent. | `string` | `"datadog/agent:latest"` | no |
| dd\_container\_name | The name of the container. | `string` | `"datadog-agent"` | no |
| dd\_env\_vars | The environment variables to pass to the container with Datadog agent. This is a list of maps. map\_environment overrides environment. | <pre>list(object({<br>    name  = string<br>    value = string<br>  }))</pre> | `[]` | no |
| dd\_logs\_injection | Specify whether you want to use Datadog logs injection or not. | `bool` | `false` | no |
| dd\_secrets | The secrets to pass to the container with Datadog agent. This is a list of maps. | <pre>list(object({<br>    name      = string<br>    valueFrom = string<br>  }))</pre> | `null` | no |
| efs\_file\_system\_id | The ID of the EFS File System. | `string` | `null` | no |
| efs\_root\_directory | The directory within the Amazon EFS file system to mount as the root directory inside the host. | `string` | `null` | no |
| efs\_volume\_enabled | Specify whether you want to use EFS volume or not. | `bool` | `false` | no |
| efs\_volume\_name | The name of the volume. | `string` | `null` | no |
| env\_prefix | The short name of the environment. | `string` | n/a | yes |
| env\_vars | The environment variables to pass to the container. This is a list of maps. map\_environment overrides environment. | <pre>list(object({<br>    name  = string<br>    value = string<br>  }))</pre> | `[]` | no |
| exec\_role\_arn | (Optional) The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume. | `string` | `null` | no |
| family | (Required) A unique name for your task definition. | `string` | n/a | yes |
| healthcheck | A map containing command (string), timeout, interval (duration in seconds), retries (1-10, number of times to retry before marking container unhealthy), and startPeriod (0-300, optional grace period to wait, in seconds, before failed healthchecks count toward retries). | <pre>object({<br>    command     = list(string)<br>    retries     = number<br>    timeout     = number<br>    interval    = number<br>    startPeriod = number<br>  })</pre> | `null` | no |
| memory | The amount (in MiB) of memory used by the task. | `number` | n/a | yes |
| mount\_points | Container mount points. This is a list of maps, where each map should contain a `containerPath` and `sourceVolume`. The `readOnly` key is optional. | <pre>list(object({<br>    containerPath = string<br>    sourceVolume  = string<br>  }))</pre> | `[]` | no |
| port\_mappings | The port mappings to configure for the container. This is a list of maps. Each map should contain "containerPort", "hostPort", and "protocol", where "protocol" is one of "tcp" or "udp". If using containers in a task with the awsvpc or host network mode, the hostPort can either be left blank or set to the same value as the containerPort | <pre>list(object({<br>    containerPort = number<br>    hostPort      = number<br>    protocol      = string<br>  }))</pre> | `[]` | no |
| project\_group | The name of the project group. | `string` | n/a | yes |
| secrets | The secrets to pass to the container. This is a list of maps. | <pre>list(object({<br>    name      = string<br>    valueFrom = string<br>  }))</pre> | `null` | no |
| task\_role\_arn | (Optional) The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services. | `string` | `null` | no |
| ulimits | Container ulimit settings. This is a list of maps, where each map should contain "name", "hardLimit" and "softLimit". | <pre>list(object({<br>    name      = string<br>    hardLimit = number<br>    softLimit = number<br>  }))</pre> | `null` | no |
| working\_directory | The working directory to run commands inside the container. | `string` | `null` | no |

## Outputs

| Name | Description |
|------|-------------|
| arn | n/a |
| container\_definitions | n/a |
| id | n/a |

