You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| <aname="input_write_container_definition_to_file"></a> [write\_container\_definition\_to\_file](#input\_write\_container\_definition\_to\_file)| Determines whether the container definition JSON should be written to a file. Used for debugging and checking diffs |`bool`|`true`| no |
Copy file name to clipboardExpand all lines: modules/container-definition/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,7 +166,7 @@ No modules.
166
166
| <aname="input_image"></a> [image](#input\_image)| The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either `repository-url/image:tag` or `repository-url/image@digest`|`string`|`null`| no |
167
167
| <aname="input_interactive"></a> [interactive](#input\_interactive)| When this parameter is `true`, you can deploy containerized applications that require `stdin` or a `tty` to be allocated |`bool`|`false`| no |
168
168
| <aname="input_links"></a> [links](#input\_links)| The links parameter allows containers to communicate with each other without the need for port mappings. This parameter is only supported if the network mode of a task definition is `bridge`|`list(string)`|`null`| no |
169
-
| <a name="input_linuxParameters"></a> [linuxParameters](#input\_linuxParameters) | Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information see [KernelCapabilities](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html) | <pre>object({<br/> capabilities = optional(object({<br/> add = optional(list(string))<br/> drop = optional(list(string))<br/> }))<br/> devices = optional(list(object({<br/> containerPath = optional(string)<br/> hostPath = optional(string)<br/> permissions = optional(list(string))<br/> })))<br/> initProcessEnabled = optional(bool, false)<br/> maxSwap = optional(number)<br/> sharedMemorySize = optional(number)<br/> swappiness = optional(number)<br/> tmpfs = optional(list(object({<br/> containerPath = string<br/> mountOptions = optional(list(string))<br/> size = number<br/> })))<br/> })</pre> | <pre>{<br/> "initProcessEnabled": false<br/>}</pre> | no |
169
+
| <a name="input_linuxParameters"></a> [linuxParameters](#input\_linuxParameters) | Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information see [KernelCapabilities](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html) | <pre>object({<br/> capabilities = optional(object({<br/> add = optional(list(string))<br/> drop = optional(list(string))<br/> }))<br/> devices = optional(list(object({<br/> containerPath = optional(string)<br/> hostPath = optional(string)<br/> permissions = optional(list(string))<br/> })))<br/> initProcessEnabled = optional(bool)<br/> maxSwap = optional(number)<br/> sharedMemorySize = optional(number)<br/> swappiness = optional(number)<br/> tmpfs = optional(list(object({<br/> containerPath = string<br/> mountOptions = optional(list(string))<br/> size = number<br/> })))<br/> })</pre> | `{}` | no |
170
170
| <aname="input_logConfiguration"></a> [logConfiguration](#input\_logConfiguration)| The log configuration for the container. For more information see [LogConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_LogConfiguration.html)| <pre>object({<br/> logDriver = optional(string)<br/> options = optional(map(string))<br/> secretOptions = optional(list(object({<br/> name = string<br/> valueFrom = string<br/> })))<br/> })</pre> |`{}`| no |
171
171
| <aname="input_memory"></a> [memory](#input\_memory)| The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. The total amount of memory reserved for all containers within a task must be lower than the task `memory` value, if one is specified |`number`|`null`| no |
172
172
| <aname="input_memoryReservation"></a> [memoryReservation](#input\_memoryReservation)| The soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit. However, your container can consume more memory when it needs to, up to either the hard limit specified with the `memory` parameter (if applicable), or all of the available memory on the container instance |`number`|`null`| no |
@@ -180,7 +180,7 @@ No modules.
180
180
| <aname="input_region"></a> [region](#input\_region)| Region where the resource(s) will be managed. Defaults to the Region set in the provider configuration |`string`|`null`| no |
181
181
| <aname="input_repositoryCredentials"></a> [repositoryCredentials](#input\_repositoryCredentials)| Container repository credentials; required when using a private repo. This map currently supports a single key; "credentialsParameter", which should be the ARN of a Secrets Manager's secret holding the credentials | <pre>object({<br/> credentialsParameter = optional(string)<br/> })</pre> |`null`| no |
182
182
| <aname="input_resourceRequirements"></a> [resourceRequirements](#input\_resourceRequirements)| The type and amount of a resource to assign to a container. The only supported resource is a GPU | <pre>list(object({<br/> type = string<br/> value = string<br/> }))</pre> |`null`| no |
| <aname="input_secrets"></a> [secrets](#input\_secrets)| The secrets to pass to the container. For more information, see [Specifying Sensitive Data](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html) in the Amazon Elastic Container Service Developer Guide | <pre>list(object({<br/> name = string<br/> valueFrom = string<br/> }))</pre> |`null`| no |
185
185
| <aname="input_service"></a> [service](#input\_service)| The name of the service that the container definition is associated with. Used in CloudWatch log group default name (if one is not provided) |`string`|`null`| no |
186
186
| <aname="input_startTimeout"></a> [startTimeout](#input\_startTimeout)| Time duration (in seconds) to wait before giving up on resolving dependencies for a container |`number`|`30`| no |
@@ -200,7 +200,7 @@ No modules.
200
200
| <aname="output_cloudwatch_log_group_arn"></a> [cloudwatch\_log\_group\_arn](#output\_cloudwatch\_log\_group\_arn)| ARN of CloudWatch log group created |
201
201
| <aname="output_cloudwatch_log_group_name"></a> [cloudwatch\_log\_group\_name](#output\_cloudwatch\_log\_group\_name)| Name of CloudWatch log group created |
| <aname="output_container_definition_json"></a> [container\_definition\_json](#output\_container\_definition\_json)| Container definition. NOTE: use `jsonencode([module.ecs_container_definition.container_definition])` instead of this output when passing into a Task Definition|
Copy file name to clipboardExpand all lines: modules/container-definition/outputs.tf
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,9 @@ output "container_definition" {
7
7
value=local.container_definition
8
8
}
9
9
10
+
# ToDo - remove at next breaking change. Not worth it
10
11
output"container_definition_json" {
11
-
description="Container definition"
12
+
description="Container definition. NOTE: use `jsonencode([module.ecs_container_definition.container_definition])` instead of this output when passing into a Task Definition"
0 commit comments