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
The `resource_requirements` variable is supported by the
`aws_ecs_task_definition` resource. This allows users to specify the
type and amount of resources (like GPUs) to assign to a container.
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -326,6 +326,7 @@ Available targets:
326
326
| <aname="input_region"></a> [region](#input\_region)| AWS Region for S3 bucket |`string`|`null`| no |
327
327
| <aname="input_repo_name"></a> [repo\_name](#input\_repo\_name)| GitHub repository name of the application to be built and deployed to ECS |`string`|`""`| no |
328
328
| <aname="input_repo_owner"></a> [repo\_owner](#input\_repo\_owner)| GitHub Organization or Username |`string`|`""`| no |
329
+
| <aname="input_resource_requirements"></a> [resource\_requirements](#input\_resource\_requirements)| 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 |
329
330
| <aname="input_runtime_platform"></a> [runtime\_platform](#input\_runtime\_platform)| Zero or one runtime platform configurations that containers in your task may use.<br/>Map of strings with optional keys `operating_system_family` and `cpu_architecture`.<br/>See `runtime_platform` docs https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#runtime_platform|`list(map(string))`|`[]`| no |
330
331
| <aname="input_secrets"></a> [secrets](#input\_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 |
331
332
| <aname="input_service_registries"></a> [service\_registries](#input\_service\_registries)| The service discovery registries for the service. The maximum number of service\_registries blocks is 1. The currently supported service registry is Amazon Route 53 Auto Naming Service - `aws_service_discovery_service`; see `service_registries` docs https://www.terraform.io/docs/providers/aws/r/ecs_service.html#service_registries-1| <pre>list(object({<br/> registry_arn = string<br/> port = number<br/> container_name = string<br/> container_port = number<br/> }))</pre> |`[]`| no |
Copy file name to clipboardExpand all lines: docs/terraform.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -209,6 +209,7 @@
209
209
| <aname="input_region"></a> [region](#input\_region)| AWS Region for S3 bucket |`string`|`null`| no |
210
210
| <aname="input_repo_name"></a> [repo\_name](#input\_repo\_name)| GitHub repository name of the application to be built and deployed to ECS |`string`|`""`| no |
211
211
| <aname="input_repo_owner"></a> [repo\_owner](#input\_repo\_owner)| GitHub Organization or Username |`string`|`""`| no |
212
+
| <aname="input_resource_requirements"></a> [resource\_requirements](#input\_resource\_requirements)| 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 |
212
213
| <aname="input_runtime_platform"></a> [runtime\_platform](#input\_runtime\_platform)| Zero or one runtime platform configurations that containers in your task may use.<br/>Map of strings with optional keys `operating_system_family` and `cpu_architecture`.<br/>See `runtime_platform` docs https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#runtime_platform|`list(map(string))`|`[]`| no |
213
214
| <aname="input_secrets"></a> [secrets](#input\_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 |
214
215
| <aname="input_service_registries"></a> [service\_registries](#input\_service\_registries)| The service discovery registries for the service. The maximum number of service\_registries blocks is 1. The currently supported service registry is Amazon Route 53 Auto Naming Service - `aws_service_discovery_service`; see `service_registries` docs https://www.terraform.io/docs/providers/aws/r/ecs_service.html#service_registries-1| <pre>list(object({<br/> registry_arn = string<br/> port = number<br/> container_name = string<br/> container_port = number<br/> }))</pre> |`[]`| no |
description="The type and amount of a resource to assign to a container. The only supported resource is a GPU."
160
+
default=null
161
+
}
162
+
153
163
variable"system_controls" {
154
164
type=list(map(string))
155
165
description="A list of namespaced kernel parameters to set in the container, mapping to the --sysctl option to docker run. This is a list of maps: { namespace = \"\", value = \"\"}"
0 commit comments