@@ -168,16 +168,6 @@ resource "aws_ecs_task_definition" "this" {
168
168
task_role_arn = try (var. task_definition . task_role_arn , null )
169
169
track_latest = try (var. task_definition . track_latest , null )
170
170
171
- dynamic "inference_accelerator" {
172
- for_each = try (var. task_definition . inference_accelerator , [])
173
- iterator = inference_accelerator
174
-
175
- content {
176
- device_name = inference_accelerator. value . device_name
177
- device_type = inference_accelerator. value . device_type
178
- }
179
- }
180
-
181
171
dynamic "runtime_platform" {
182
172
for_each = length (try (var. task_definition . runtime_platform , {})) > 0 ? [1 ] : []
183
173
@@ -187,34 +177,6 @@ resource "aws_ecs_task_definition" "this" {
187
177
}
188
178
}
189
179
190
- dynamic "placement_constraints" {
191
- for_each = try (var. task_definition . placement_constraints , [])
192
- iterator = placement_constraints
193
-
194
- content {
195
- expression = try (placement_constraints. value . expression , null )
196
- type = placement_constraints. value . type
197
- }
198
- }
199
-
200
- dynamic "proxy_configuration" {
201
- for_each = length (try (var. task_definition . proxy_configuration , {})) > 0 ? [1 ] : []
202
-
203
- content {
204
- container_name = var. task_definition . proxy_configuration . container_name
205
- properties = var. task_definition . proxy_configuration . properties
206
- type = try (var. task_definition . proxy_configuration . type , null )
207
- }
208
- }
209
-
210
- dynamic "ephemeral_storage" {
211
- for_each = length (try (var. task_definition . ephemeral_storage , {})) > 0 ? [1 ] : []
212
-
213
- content {
214
- size_in_gib = var. task_definition . ephemeral_storage . size_in_gib
215
- }
216
- }
217
-
218
180
dynamic "volume" {
219
181
for_each = try (var. task_definition . volume , [])
220
182
iterator = volume
@@ -235,40 +197,6 @@ resource "aws_ecs_task_definition" "this" {
235
197
scope = try (volume. value . docker_volume_configuration . scope , null )
236
198
}
237
199
}
238
-
239
- dynamic "efs_volume_configuration" {
240
- for_each = length (try (volume. value . efs_volume_configuration , {})) > 0 ? [1 ] : []
241
-
242
- content {
243
- file_system_id = volume. value . efs_volume_configuration . file_system_id
244
- root_directory = try (volume. value . efs_volume_configuration . root_directory , null )
245
- transit_encryption = try (volume. value . efs_volume_configuration . transit_encryption , null )
246
- transit_encryption_port = try (volume. value . efs_volume_configuration . transit_encryption_port , null )
247
-
248
- dynamic "authorization_config" {
249
- for_each = length (try (volume. value . efs_volume_configuration . authorization_config , {})) > 0 ? [1 ] : []
250
-
251
- content {
252
- access_point_id = try (volume. value . efs_volume_configuration . authorization_config . access_point_id , null )
253
- iam = try (volume. value . efs_volume_configuration . authorization_config . iam , null )
254
- }
255
- }
256
- }
257
- }
258
-
259
- dynamic "fsx_windows_file_server_volume_configuration" {
260
- for_each = length (try (volume. value . fsx_windows_file_server_volume_configuration , {})) > 0 ? [1 ] : []
261
-
262
- content {
263
- file_system_id = volume. value . fsx_windows_file_server_volume_configuration . file_system_id
264
- root_directory = volume. value . fsx_windows_file_server_volume_configuration . root_directory
265
-
266
- authorization_config {
267
- credentials_parameter = volume. value . fsx_windows_file_server_volume_configuration . credentials_parameter
268
- domain = volume. value . fsx_windows_file_server_volume_configuration . domain
269
- }
270
- }
271
- }
272
200
}
273
201
}
274
202
0 commit comments