aws_ecs_task_definition_with_datadog

This module is a simple wrapper module around aws_ecs_task_definition which adds a datadog agent sidecar container to the task definition.

Terraform Module Source

module "aws_ecs_task_definition_with_datadog" {
  source = "https://tfmodules.matillion-cto.matillion.com/aws_ecs_task_definition_with_datadog.tar.gz"
  ...
}

Resources

NameType
aws_ecs_task_definition.aws_ecs_task_definition_with_datadogresource
aws_iam_role.aws_ecs_task_roleresource

Inputs

NameDescriptionTypeDefaultRequired
container_definitionsA list of valid container definitions provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the Task Definition Parameters section from the official Developer Guide.stringn/ayes
cpuNumber of cpu units used by the task. If the requires_compatibilities is FARGATE this field is required.stringn/ayes
dd_api_key_secretThe secret to expose to the container. The supported values are either the full ARN of the AWS Secrets Manager secret or the full ARN of the parameter in the AWS Systems Manager Parameter Store.stringn/ayes
dd_envThe env tag to be attached to all data sent to Datadog.stringn/ayes
dd_service_nameThe service name to be attached to all data sent to Datadog.stringn/ayes
dd_teamThe team tag to be attached to all data sent to Datadog.stringn/ayes
dd_versionThe version tag to be attached to all data sent to Datadog.stringn/ayes
execution_role_arnARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.stringn/ayes
familyA unique name for your task definition.stringn/ayes
memoryAmount (in MiB) of memory used by the task. If the requires_compatibilities is FARGATE this field is required.stringn/ayes
network_modeDocker networking mode to use for the containers in the task. Valid values are none, bridge, awsvpc, and host.stringn/ayes
task_role_inline_policiesThe inline policies to use for the task role.set(object({name: string, policy: string}))n/ayes
dd_siteCan also use datadoghq.eustring"datadoghq.com"no

Outputs

NameDescription
arnn/a