ecs-container-definition
bryan-rhm/ecs-container-definition/aws
Terraform module for ECS container definitions
Install
README
Terraform ECS Container Definitions Inspired from (cloudpose module)[https://github.com/cloudposse/terraform-aws-ecs-container-definition] Requirements | Name | Version | |------|---------| | terraform | >= 1.0.0 | | aws | >=3.0 | | local | >= 1.2 | Providers No providers. Modules No modules. Resources No resources. Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | command | The command that is passed to the container | list(string) | null | no | | container\_cpu | The number of cpu units to reserve for the container. This is optional for tasks using Fargate launch type and the total amount of container\_cpu of all containers in a task will need to be lower than the task-level cpu value | number | 0 | no | | container\_definition
Inputs (42)
| Name | Type | Description | Default |
|---|---|---|---|
| docker_security_options | list(string) | A list of strings to provide custom labels for SELinux and AppArmor multi-level | required |
| linux_parameters | object({ capabilities = ob | Linux-specific modifications that are applied to the container, such as Linux ke | required |
| dns_search_domains | list(string) | Container DNS search domains. A list of DNS search domains that are presented to | required |
| docker_labels | map(string) | The configuration options to send to the `docker_labels` | required |
| hostname | string | The hostname to use for your container. | required |
| interactive | bool | When this parameter is true, this allows you to deploy containerized application | required |
| links | list(string) | List of container names this container can communicate with without port mapping | required |
| container_memory | number | The amount of memory (in MiB) to allow the container to use. This is a hard limi | required |
| entrypoint | list(string) | The entry point that is passed to the container | required |
| map_secrets | map(string) | The secrets variables to pass to the container. This is a map of string: {key: v | required |
| dns_servers | list(string) | Container DNS servers. This is a list of strings specifying the IP addresses of | required |
| repository_credentials | map(string) | Container repository credentials; required when using a private repo. This map | required |
| user | string | The user to run as inside the container. Can be any of these formats: user, user | required |
| privileged | bool | When this variable is `true`, the container is given elevated privileges on the | required |
| container_memory_reservation | number | The amount of memory (in MiB) to reserve for the container. If container needs t | required |
| firelens_configuration | object({ type = string | The FireLens configuration for the container. This is used to specify and config | required |
| ulimits | list(object({ name = | Container ulimit settings. This is a list of maps, where each map should contain | required |
| container_name | string | The name of the container. Up to 255 characters ([a-z], [A-Z], [0-9], -, _ allow | required |
| container_depends_on | list(object({ containerNam | The dependencies defined for container startup and shutdown. A container can con | required |
| system_controls | list(map(string)) | A list of namespaced kernel parameters to set in the container, mapping to the - | required |
| readonly_root_filesystem | bool | Determines whether a container is given read-only access to its root filesystem. | false |
| essential | bool | Determines whether all other containers in a task are stopped, if this container | true |
| port_mappings | list(object({ containerPor | The port mappings to configure for the container. This is a list of maps. Each m | [] |
| volumes_from | list(object({ sourceContai | A list of VolumesFrom maps which contain "sourceContainer" (name of the containe | [] |
| mount_points | list(object({ containerPat | Container mount points. This is a list of maps, where each map should contain `c | [] |
| environment | list(object({ name = stri | The environment variables to pass to the container. This is a list of maps. map_ | [] |
| container_cpu | number | The number of cpu units to reserve for the container. This is optional for tasks | 0 |
| secrets | list(object({ name = | The secrets to pass to the container. This is a list of maps | [] |
| container_definition | map(any) | Container definition overrides which allows for extra keys or overriding existin | {} |
| … and 2 more inputs | |||
Outputs (1)
json_map_encoded — JSON string encoded container definitions for use with other terraform resources such as aws_ecs_tasDetails
Similar packages
Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,