ecs-container-definition
cloudposse/ecs-container-definition/aws
Terraform module to generate well-formed JSON documents (container definitions) that are passed to the aws_ecs_task_definition Terraform resource
Terraform module to generate well-formed JSON documents that are passed to the aws_ecs_task_definition Terraform resource as container definitions. > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works with Github Actions, Atlantis, or Spacelift. > > > Watch demo of using Atmos with Terraform > > Example of running atmos to manage infrastructure from our Quick Start tutorial. > Usage This module is meant to be used as output only, meaning it will be used to create outputs which are consumed as a parameter by Terraform resources or other modules. Caution: This module, unlike nearly all other Cloud Posse Terraform modules, does not use terraform-null-label. Furthermore, it has an input named environment which
| Name | Type | Description | Default |
|---|---|---|---|
| container_name | string | The name of the container. Up to 255 characters ([a-z], [A-Z], [0-9], -, _ allow | required |
| container_image | string | The image used to start the container. Images in the Docker Hub registry availab | required |
| version_consistency | string | Specifies whether Amazon ECS will resolve the container image tag provided in th | null |
| healthcheck | object({ command = lis | A map containing command (string), timeout, interval (duration in seconds), retr | null |
| container_cpu | number | The number of cpu units to reserve for the container. This is optional for tasks | 0 |
| command | list(string) | The command that is passed to the container | null |
| environment | list(object({ name = stri | The environment variables to pass to the container. This is a list of maps. map_ | null |
| ulimits | list(object({ hardLimit = | Container ulimit settings. This is a list of maps, where each map should contain | null |
| docker_labels | map(string) | The configuration options to send to the `docker_labels` | null |
| resource_requirements | list(object({ type = stri | The type and amount of a resource to assign to a container. The only supported r | null |
| essential | bool | Determines whether all other containers in a task are stopped, if this container | true |
| entrypoint | list(string) | The entry point that is passed to the container | null |
| mount_points | list(object({ containerPat | Container mount points. This is a list of maps, where each map should contain `c | null |
| docker_security_options | list(string) | A list of strings to provide custom labels for SELinux and AppArmor multi-level | null |
| disable_networking | bool | When this parameter is true, networking is disabled within the container. | null |
| working_directory | string | The working directory to run commands inside the container | null |
| extra_hosts | list(object({ hostname = | A list of hostnames and IP address mappings to append to the /etc/hosts file on | null |
| map_environment | map(string) | The environment variables to pass to the container. This is a map of string: {ke | null |
| environment_files | list(object({ type = stri | One or more files containing the environment variables to pass to the container. | null |
| dns_search_domains | list(string) | Container DNS search domains. A list of DNS search domains that are presented to | null |
| restart_policy | object({ enabled | The restart policy for a container. When you set up a restart policy, Amazon ECS | null |
| interactive | bool | When this parameter is true, this allows you to deploy containerized application | null |
| … and 4 more inputs | |||
json_map_encoded_list — JSON string encoded list of container definitions for use with other terraform resources such as awsjson_map_encoded — JSON string encoded container definitions for use with other terraform resources such as aws_ecs_tasjson_map_object — JSON map encoded container definitionsensitive_json_map_encoded_list — JSON string encoded list of container definitions for use with other terraform resources such as awssensitive_json_map_encoded — JSON string encoded container definitions for use with other terraform resources such as aws_ecs_tassensitive_json_map_object — JSON map encoded container definition (sensitive)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,