media-engine: write what ECS and DNS Firewall answer, so plans settle
The media spike saw every plan replace all four task definitions and update both DNS Firewall domain lists in place. Task definitions: ECS answers an empty capabilities.add, and the AWS provider (container_definitions equivalence, reduce()) clears empty top-level lists but not that one, so an absent "add" never matched. The shared container now writes add = [] and the five top-level lists ECS fills in (environment, mountPoints, portMappings, systemControls, volumesFrom), so the render is exactly what ECS holds. Domain lists: DNS Firewall stores every name with a trailing dot and the provider compares them as written (terraform-provider-aws #23543). The one-name "everything" list diffed too, so it was form, not order. The names are now fully qualified, "*" included. skip_destroy and every security assertion stay; the ones that read an absent list now read an empty one. New: a tofu assertion that every list ECS fills in is written, one that every domain is fully qualified, and TestModuleRendersWhatECSAnswers on the checked-in render, which CI runs. All three fail on the old module. The render is regenerated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 files changed,
+108
−22
infra/modules/media-engine/ecs.tf+15 −1infra/modules/media-engine/network.tf+13 −6infra/modules/media-engine/tests/media_engine.tftest.hcl+28 −11internal/mediaaws/module_test.go+48 −0internal/mediaaws/testdata/media-engine-rendered.json+4 −4
diff --git a/infra/modules/media-engine/ecs.tf b/infra/modules/media-engine/ecs.tf| index 0b05006f7..5903a3fba 100644 |
| --- a/infra/modules/media-engine/ecs.tf |
| +++ b/infra/modules/media-engine/ecs.tf |
| @@ -17,6 +17,15 @@ locals { |
| # What both containers share. internal/media/gate.go refuses a revision that |
| # differs from this, so a change here must satisfy CheckTaskDefinition. |
| + # |
| + # Written in the form ECS answers it, or every plan replaces all four |
| + # definitions and every apply registers four new revisions (the media |
| + # spike, 2026-11-20). ECS fills in an empty list for each list below that a |
| + # definition leaves out. The AWS provider treats a missing top-level list |
| + # and an empty one as the same, but not capabilities.add, so an absent `add` |
| + # never matches ECS's `"add": []`. The empty lists are written out all the |
| + # same, so the render is what ECS holds and |
| + # TestModuleRendersWhatECSAnswers can compare the two whole. |
| engine_container = { |
| image = local.engine_image |
| essential = true |
| @@ -24,7 +33,12 @@ locals { |
| user = "65534:65534" |
| readonlyRootFilesystem = true |
| stopTimeout = 30 |
| - linuxParameters = { capabilities = { drop = ["ALL"] } } |
| + linuxParameters = { capabilities = { add = [], drop = ["ALL"] } } |
| + environment = [] |
| + mountPoints = [] |
| + portMappings = [] |
| + systemControls = [] |
| + volumesFrom = [] |
| } |
| codec_logs = var.logs ? { |
diff --git a/infra/modules/media-engine/network.tf b/infra/modules/media-engine/network.tf| index d43714ade..2ac228367 100644 |
| --- a/infra/modules/media-engine/network.tf |
| +++ b/infra/modules/media-engine/network.tf |
| @@ -209,20 +209,27 @@ resource "aws_vpc_endpoint_policy" "logs" { |
| # A security group cannot stop queries to the VPC resolver, so this does: |
| # the services' names resolve and every other name does not exist. |
| +# |
| +# The names are fully qualified, with the trailing dot, because DNS Firewall |
| +# adds one to every name it stores and lists them that way, and the AWS |
| +# provider compares them as written (terraform-provider-aws issue 23543; its |
| +# own acceptance test writes fully qualified names). Without the dot every |
| +# plan updated both lists in place (the media spike, 2026-11-20), the one-name |
| +# `everything` list included, so it was the names' form, not their order. |
| resource "aws_route53_resolver_firewall_domain_list" "allowed" { |
| name = "${var.name}-allowed" |
| domains = [ |
| - "s3.${var.region}.amazonaws.com", |
| - "*.s3.${var.region}.amazonaws.com", |
| - "api.ecr.${var.region}.amazonaws.com", |
| - "*.dkr.ecr.${var.region}.amazonaws.com", |
| - "logs.${var.region}.amazonaws.com", |
| + "s3.${var.region}.amazonaws.com.", |
| + "*.s3.${var.region}.amazonaws.com.", |
| + "api.ecr.${var.region}.amazonaws.com.", |
| + "*.dkr.ecr.${var.region}.amazonaws.com.", |
| + "logs.${var.region}.amazonaws.com.", |
| ] |
| } |
| resource "aws_route53_resolver_firewall_domain_list" "everything" { |
| name = "${var.name}-everything" |
| - domains = ["*"] |
| + domains = ["*."] |
| } |
| resource "aws_route53_resolver_firewall_rule_group" "engine" { |
diff --git a/infra/modules/media-engine/tests/media_engine.tftest.hcl b/infra/modules/media-engine/tests/media_engine.tftest.hcl| index bce9e8c0d..7a19f7ce0 100644 |
| --- a/infra/modules/media-engine/tests/media_engine.tftest.hcl |
| +++ b/infra/modules/media-engine/tests/media_engine.tftest.hcl |
| @@ -193,10 +193,20 @@ run "task_definitions_pass_the_gate" { |
| } |
| assert { |
| condition = alltrue(flatten([for td in aws_ecs_task_definition.engine : [for c in jsondecode(td.container_definitions) : |
| - jsonencode(c.linuxParameters.capabilities) == jsonencode({ drop = ["ALL"] }) |
| + jsonencode(c.linuxParameters.capabilities) == jsonencode({ add = [], drop = ["ALL"] }) |
| ]])) |
| error_message = "every capability dropped and none added" |
| } |
| + assert { |
| + # ECS answers each of these lists, empty when a definition leaves it out. |
| + # A definition that omits one differs from what ECS holds, and the plan |
| + # after every apply replaces all four (the media spike, 2026-11-20). |
| + condition = alltrue(flatten([for td in aws_ecs_task_definition.engine : [for c in jsondecode(td.container_definitions) : |
| + can(length(c.environment)) && can(length(c.mountPoints)) && can(length(c.portMappings)) |
| + && can(length(c.systemControls)) && can(length(c.volumesFrom)) && can(length(c.linuxParameters.capabilities.add)) |
| + ]])) |
| + error_message = "every list ECS fills in is written out, so the definition is in ECS's form and a second plan changes nothing" |
| + } |
| assert { |
| condition = alltrue(flatten([for td in aws_ecs_task_definition.engine : [for c in jsondecode(td.container_definitions) : |
| c.image == "123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" |
| @@ -211,9 +221,9 @@ run "task_definitions_pass_the_gate" { |
| } |
| assert { |
| condition = alltrue(flatten([for td in aws_ecs_task_definition.engine : [for c in jsondecode(td.container_definitions) : |
| - !can(c.restartPolicy) && !can(c.volumesFrom) |
| + !can(c.restartPolicy) && length(c.volumesFrom) == 0 && length(c.portMappings) == 0 && length(c.systemControls) == 0 |
| ]])) |
| - error_message = "no restart policy and no volumesFrom" |
| + error_message = "no restart policy, volumesFrom, port mapping or system control" |
| } |
| assert { |
| condition = alltrue([for td in aws_ecs_task_definition.engine : |
| @@ -224,7 +234,7 @@ run "task_definitions_pass_the_gate" { |
| } |
| assert { |
| condition = alltrue([for td in aws_ecs_task_definition.engine : |
| - !can(jsondecode(td.container_definitions)[0].mountPoints) |
| + length(jsondecode(td.container_definitions)[0].mountPoints) == 0 |
| && jsonencode([for m in jsondecode(td.container_definitions)[1].mountPoints : [m.sourceVolume, m.containerPath]]) == jsonencode([["scratch", "/scratch"]]) |
| ]) |
| error_message = "scratch is mounted in codec only" |
| @@ -232,7 +242,7 @@ run "task_definitions_pass_the_gate" { |
| assert { |
| condition = alltrue([for td in aws_ecs_task_definition.engine : |
| jsonencode(jsondecode(td.container_definitions)[1].environment) == jsonencode([{ name = "TMPDIR", value = "/scratch/tmp" }]) |
| - && !can(jsondecode(td.container_definitions)[0].environment) |
| + && length(jsondecode(td.container_definitions)[0].environment) == 0 |
| ]) |
| error_message = "codec alone gets TMPDIR" |
| } |
| @@ -430,14 +440,21 @@ run "dns_firewall_allows_three_services_and_blocks_the_rest" { |
| command = apply |
| assert { |
| condition = jsonencode(sort(tolist(aws_route53_resolver_firewall_domain_list.allowed.domains))) == jsonencode(sort([ |
| - "s3.eu-west-1.amazonaws.com", |
| - "*.s3.eu-west-1.amazonaws.com", |
| - "api.ecr.eu-west-1.amazonaws.com", |
| - "*.dkr.ecr.eu-west-1.amazonaws.com", |
| - "logs.eu-west-1.amazonaws.com", |
| + "s3.eu-west-1.amazonaws.com.", |
| + "*.s3.eu-west-1.amazonaws.com.", |
| + "api.ecr.eu-west-1.amazonaws.com.", |
| + "*.dkr.ecr.eu-west-1.amazonaws.com.", |
| + "logs.eu-west-1.amazonaws.com.", |
| ])) |
| error_message = "the allow list is S3, the registry and logs in this region" |
| } |
| + assert { |
| + condition = alltrue([for d in concat( |
| + tolist(aws_route53_resolver_firewall_domain_list.allowed.domains), |
| + tolist(aws_route53_resolver_firewall_domain_list.everything.domains), |
| + ) : endswith(d, ".")]) |
| + error_message = "names fully qualified, as DNS Firewall lists them, or every plan rewrites both lists" |
| + } |
| assert { |
| condition = ( |
| aws_route53_resolver_firewall_rule.allow.priority == 100 |
| @@ -460,7 +477,7 @@ run "dns_firewall_allows_three_services_and_blocks_the_rest" { |
| && aws_route53_resolver_firewall_rule.block.action == "BLOCK" |
| && aws_route53_resolver_firewall_rule.block.block_response == "NXDOMAIN" |
| && aws_route53_resolver_firewall_rule.block.firewall_domain_list_id == aws_route53_resolver_firewall_domain_list.everything.id |
| - && jsonencode(tolist(aws_route53_resolver_firewall_domain_list.everything.domains)) == jsonencode(["*"]) |
| + && jsonencode(tolist(aws_route53_resolver_firewall_domain_list.everything.domains)) == jsonencode(["*."]) |
| ) |
| error_message = "every other name answers NXDOMAIN" |
| } |
diff --git a/internal/mediaaws/module_test.go b/internal/mediaaws/module_test.go| index 1f83ff78a..041e987fd 100644 |
| --- a/internal/mediaaws/module_test.go |
| +++ b/internal/mediaaws/module_test.go |
| @@ -7,10 +7,12 @@ import ( |
| "encoding/json" |
| "errors" |
| "io/fs" |
| + "maps" |
| "os" |
| "os/exec" |
| "path" |
| "path/filepath" |
| + "reflect" |
| "regexp" |
| "slices" |
| "strings" |
| @@ -121,6 +123,52 @@ func TestModuleGateWitnessRefusesABrokenDefinition(t *testing.T) { |
| } |
| } |
| +// ecsFilledLists are the lists ECS answers for every container, empty when |
| +// the registered definition left them out. The media spike saw each of them |
| +// in the plan after every apply (2026-11-20). |
| +var ecsFilledLists = []string{"environment", "mountPoints", "portMappings", "systemControls", "volumesFrom"} |
| + |
| +// ecsAnswer is a container definition as DescribeTaskDefinition would answer |
| +// it: the same, with an empty list wherever ECS fills one in. |
| +func ecsAnswer(container map[string]any) map[string]any { |
| + out := maps.Clone(container) |
| + for _, key := range ecsFilledLists { |
| + if _, ok := out[key]; !ok { |
| + out[key] = []any{} |
| + } |
| + } |
| + lp, _ := out["linuxParameters"].(map[string]any) |
| + caps, _ := lp["capabilities"].(map[string]any) |
| + if _, ok := caps["add"]; caps != nil && !ok { |
| + lp, caps = maps.Clone(lp), maps.Clone(caps) |
| + caps["add"] = []any{} |
| + lp["capabilities"] = caps |
| + out["linuxParameters"] = lp |
| + } |
| + return out |
| +} |
| + |
| +// TestModuleRendersWhatECSAnswers: the module's container definitions are |
| +// what ECS hands back, so the plan after an apply changes nothing. The AWS |
| +// provider compares an absent capabilities.add with ECS's empty one as a |
| +// difference, and every plan replaced all four definitions and registered |
| +// four new revisions (the media spike, 2026-11-20). |
| +func TestModuleRendersWhatECSAnswers(t *testing.T) { |
| + for class, rendered := range readModuleRender(t).TaskDefinitions { |
| + var containers []map[string]any |
| + if err := json.Unmarshal([]byte(rendered.ContainerDefinitions), &containers); err != nil { |
| + t.Fatalf("%s: %v", class, err) |
| + } |
| + for _, c := range containers { |
| + if want := ecsAnswer(c); !reflect.DeepEqual(c, want) { |
| + got, _ := json.Marshal(c) |
| + answer, _ := json.Marshal(want) |
| + t.Errorf("%s %v: ECS would answer\n%s\nfor the module's\n%s", class, c["name"], answer, got) |
| + } |
| + } |
| + } |
| +} |
| + |
| func TestModuleOutputParses(t *testing.T) { |
| r := readModuleRender(t) |
| c, err := ParseConfig(r.Engine) |
diff --git a/internal/mediaaws/testdata/media-engine-rendered.json b/internal/mediaaws/testdata/media-engine-rendered.json| index 8f39f9148..b12d85831 100644 |
| --- a/internal/mediaaws/testdata/media-engine-rendered.json |
| +++ b/internal/mediaaws/testdata/media-engine-rendered.json |
| @@ -7,7 +7,7 @@ |
| "task_role_arn": "", |
| "pid_mode": "", |
| "cpu_architecture": "ARM64", |
| - "container_definitions": "[{\"command\":[\"deadline\"],\"cpu\":64,\"entryPoint\":[\"/usr/local/bin/carlos-media\"],\"essential\":true,\"image\":\"123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"linuxParameters\":{\"capabilities\":{\"drop\":[\"ALL\"]}},\"memory\":64,\"name\":\"deadline\",\"readonlyRootFilesystem\":true,\"stopTimeout\":30,\"user\":\"65534:65534\"},{\"command\":[\"codec\"],\"cpu\":1984,\"dependsOn\":[{\"condition\":\"START\",\"containerName\":\"deadline\"}],\"entryPoint\":[\"/usr/local/bin/carlos-media\"],\"environment\":[{\"name\":\"TMPDIR\",\"value\":\"/scratch/tmp\"}],\"essential\":true,\"image\":\"123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"linuxParameters\":{\"capabilities\":{\"drop\":[\"ALL\"]}},\"logConfiguration\":{\"logDriver\":\"awslogs\",\"options\":{\"awslogs-group\":\"/carlos/carlos-test-media/engine\",\"awslogs-region\":\"eu-west-1\",\"awslogs-stream-prefix\":\"media\"}},\"memory\":4032,\"mountPoints\":[{\"containerPath\":\"/scratch\",\"readOnly\":false,\"sourceVolume\":\"scratch\"}],\"name\":\"codec\",\"readonlyRootFilesystem\":true,\"stopTimeout\":30,\"user\":\"65534:65534\"}]" |
| + "container_definitions": "[{\"command\":[\"deadline\"],\"cpu\":64,\"entryPoint\":[\"/usr/local/bin/carlos-media\"],\"environment\":[],\"essential\":true,\"image\":\"123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"linuxParameters\":{\"capabilities\":{\"add\":[],\"drop\":[\"ALL\"]}},\"memory\":64,\"mountPoints\":[],\"name\":\"deadline\",\"portMappings\":[],\"readonlyRootFilesystem\":true,\"stopTimeout\":30,\"systemControls\":[],\"user\":\"65534:65534\",\"volumesFrom\":[]},{\"command\":[\"codec\"],\"cpu\":1984,\"dependsOn\":[{\"condition\":\"START\",\"containerName\":\"deadline\"}],\"entryPoint\":[\"/usr/local/bin/carlos-media\"],\"environment\":[{\"name\":\"TMPDIR\",\"value\":\"/scratch/tmp\"}],\"essential\":true,\"image\":\"123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"linuxParameters\":{\"capabilities\":{\"add\":[],\"drop\":[\"ALL\"]}},\"logConfiguration\":{\"logDriver\":\"awslogs\",\"options\":{\"awslogs-group\":\"/carlos/carlos-test-media/engine\",\"awslogs-region\":\"eu-west-1\",\"awslogs-stream-prefix\":\"media\"}},\"memory\":4032,\"mountPoints\":[{\"containerPath\":\"/scratch\",\"readOnly\":false,\"sourceVolume\":\"scratch\"}],\"name\":\"codec\",\"portMappings\":[],\"readonlyRootFilesystem\":true,\"stopTimeout\":30,\"systemControls\":[],\"user\":\"65534:65534\",\"volumesFrom\":[]}]" |
| }, |
| "audio-aac/short": { |
| "arn": "arn:aws:ecs:eu-west-1:123456789012:task-definition/carlos-test-media-video-720p-short:7", |
| @@ -15,7 +15,7 @@ |
| "task_role_arn": "", |
| "pid_mode": "", |
| "cpu_architecture": "ARM64", |
| - "container_definitions": "[{\"command\":[\"deadline\"],\"cpu\":64,\"entryPoint\":[\"/usr/local/bin/carlos-media\"],\"essential\":true,\"image\":\"123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"linuxParameters\":{\"capabilities\":{\"drop\":[\"ALL\"]}},\"memory\":64,\"name\":\"deadline\",\"readonlyRootFilesystem\":true,\"stopTimeout\":30,\"user\":\"65534:65534\"},{\"command\":[\"codec\"],\"cpu\":960,\"dependsOn\":[{\"condition\":\"START\",\"containerName\":\"deadline\"}],\"entryPoint\":[\"/usr/local/bin/carlos-media\"],\"environment\":[{\"name\":\"TMPDIR\",\"value\":\"/scratch/tmp\"}],\"essential\":true,\"image\":\"123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"linuxParameters\":{\"capabilities\":{\"drop\":[\"ALL\"]}},\"logConfiguration\":{\"logDriver\":\"awslogs\",\"options\":{\"awslogs-group\":\"/carlos/carlos-test-media/engine\",\"awslogs-region\":\"eu-west-1\",\"awslogs-stream-prefix\":\"media\"}},\"memory\":1984,\"mountPoints\":[{\"containerPath\":\"/scratch\",\"readOnly\":false,\"sourceVolume\":\"scratch\"}],\"name\":\"codec\",\"readonlyRootFilesystem\":true,\"stopTimeout\":30,\"user\":\"65534:65534\"}]" |
| + "container_definitions": "[{\"command\":[\"deadline\"],\"cpu\":64,\"entryPoint\":[\"/usr/local/bin/carlos-media\"],\"environment\":[],\"essential\":true,\"image\":\"123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"linuxParameters\":{\"capabilities\":{\"add\":[],\"drop\":[\"ALL\"]}},\"memory\":64,\"mountPoints\":[],\"name\":\"deadline\",\"portMappings\":[],\"readonlyRootFilesystem\":true,\"stopTimeout\":30,\"systemControls\":[],\"user\":\"65534:65534\",\"volumesFrom\":[]},{\"command\":[\"codec\"],\"cpu\":960,\"dependsOn\":[{\"condition\":\"START\",\"containerName\":\"deadline\"}],\"entryPoint\":[\"/usr/local/bin/carlos-media\"],\"environment\":[{\"name\":\"TMPDIR\",\"value\":\"/scratch/tmp\"}],\"essential\":true,\"image\":\"123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"linuxParameters\":{\"capabilities\":{\"add\":[],\"drop\":[\"ALL\"]}},\"logConfiguration\":{\"logDriver\":\"awslogs\",\"options\":{\"awslogs-group\":\"/carlos/carlos-test-media/engine\",\"awslogs-region\":\"eu-west-1\",\"awslogs-stream-prefix\":\"media\"}},\"memory\":1984,\"mountPoints\":[{\"containerPath\":\"/scratch\",\"readOnly\":false,\"sourceVolume\":\"scratch\"}],\"name\":\"codec\",\"portMappings\":[],\"readonlyRootFilesystem\":true,\"stopTimeout\":30,\"systemControls\":[],\"user\":\"65534:65534\",\"volumesFrom\":[]}]" |
| }, |
| "video-720p/long": { |
| "arn": "arn:aws:ecs:eu-west-1:123456789012:task-definition/carlos-test-media-video-720p-short:7", |
| @@ -23,7 +23,7 @@ |
| "task_role_arn": "", |
| "pid_mode": "", |
| "cpu_architecture": "ARM64", |
| - "container_definitions": "[{\"command\":[\"deadline\"],\"cpu\":64,\"entryPoint\":[\"/usr/local/bin/carlos-media\"],\"essential\":true,\"image\":\"123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"linuxParameters\":{\"capabilities\":{\"drop\":[\"ALL\"]}},\"memory\":64,\"name\":\"deadline\",\"readonlyRootFilesystem\":true,\"stopTimeout\":30,\"user\":\"65534:65534\"},{\"command\":[\"codec\"],\"cpu\":16320,\"dependsOn\":[{\"condition\":\"START\",\"containerName\":\"deadline\"}],\"entryPoint\":[\"/usr/local/bin/carlos-media\"],\"environment\":[{\"name\":\"TMPDIR\",\"value\":\"/scratch/tmp\"}],\"essential\":true,\"image\":\"123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"linuxParameters\":{\"capabilities\":{\"drop\":[\"ALL\"]}},\"logConfiguration\":{\"logDriver\":\"awslogs\",\"options\":{\"awslogs-group\":\"/carlos/carlos-test-media/engine\",\"awslogs-region\":\"eu-west-1\",\"awslogs-stream-prefix\":\"media\"}},\"memory\":32704,\"mountPoints\":[{\"containerPath\":\"/scratch\",\"readOnly\":false,\"sourceVolume\":\"scratch\"}],\"name\":\"codec\",\"readonlyRootFilesystem\":true,\"stopTimeout\":30,\"user\":\"65534:65534\"}]" |
| + "container_definitions": "[{\"command\":[\"deadline\"],\"cpu\":64,\"entryPoint\":[\"/usr/local/bin/carlos-media\"],\"environment\":[],\"essential\":true,\"image\":\"123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"linuxParameters\":{\"capabilities\":{\"add\":[],\"drop\":[\"ALL\"]}},\"memory\":64,\"mountPoints\":[],\"name\":\"deadline\",\"portMappings\":[],\"readonlyRootFilesystem\":true,\"stopTimeout\":30,\"systemControls\":[],\"user\":\"65534:65534\",\"volumesFrom\":[]},{\"command\":[\"codec\"],\"cpu\":16320,\"dependsOn\":[{\"condition\":\"START\",\"containerName\":\"deadline\"}],\"entryPoint\":[\"/usr/local/bin/carlos-media\"],\"environment\":[{\"name\":\"TMPDIR\",\"value\":\"/scratch/tmp\"}],\"essential\":true,\"image\":\"123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"linuxParameters\":{\"capabilities\":{\"add\":[],\"drop\":[\"ALL\"]}},\"logConfiguration\":{\"logDriver\":\"awslogs\",\"options\":{\"awslogs-group\":\"/carlos/carlos-test-media/engine\",\"awslogs-region\":\"eu-west-1\",\"awslogs-stream-prefix\":\"media\"}},\"memory\":32704,\"mountPoints\":[{\"containerPath\":\"/scratch\",\"readOnly\":false,\"sourceVolume\":\"scratch\"}],\"name\":\"codec\",\"portMappings\":[],\"readonlyRootFilesystem\":true,\"stopTimeout\":30,\"systemControls\":[],\"user\":\"65534:65534\",\"volumesFrom\":[]}]" |
| }, |
| "video-720p/short": { |
| "arn": "arn:aws:ecs:eu-west-1:123456789012:task-definition/carlos-test-media-video-720p-short:7", |
| @@ -31,7 +31,7 @@ |
| "task_role_arn": "", |
| "pid_mode": "", |
| "cpu_architecture": "ARM64", |
| - "container_definitions": "[{\"command\":[\"deadline\"],\"cpu\":64,\"entryPoint\":[\"/usr/local/bin/carlos-media\"],\"essential\":true,\"image\":\"123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"linuxParameters\":{\"capabilities\":{\"drop\":[\"ALL\"]}},\"memory\":64,\"name\":\"deadline\",\"readonlyRootFilesystem\":true,\"stopTimeout\":30,\"user\":\"65534:65534\"},{\"command\":[\"codec\"],\"cpu\":4032,\"dependsOn\":[{\"condition\":\"START\",\"containerName\":\"deadline\"}],\"entryPoint\":[\"/usr/local/bin/carlos-media\"],\"environment\":[{\"name\":\"TMPDIR\",\"value\":\"/scratch/tmp\"}],\"essential\":true,\"image\":\"123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"linuxParameters\":{\"capabilities\":{\"drop\":[\"ALL\"]}},\"logConfiguration\":{\"logDriver\":\"awslogs\",\"options\":{\"awslogs-group\":\"/carlos/carlos-test-media/engine\",\"awslogs-region\":\"eu-west-1\",\"awslogs-stream-prefix\":\"media\"}},\"memory\":8128,\"mountPoints\":[{\"containerPath\":\"/scratch\",\"readOnly\":false,\"sourceVolume\":\"scratch\"}],\"name\":\"codec\",\"readonlyRootFilesystem\":true,\"stopTimeout\":30,\"user\":\"65534:65534\"}]" |
| + "container_definitions": "[{\"command\":[\"deadline\"],\"cpu\":64,\"entryPoint\":[\"/usr/local/bin/carlos-media\"],\"environment\":[],\"essential\":true,\"image\":\"123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"linuxParameters\":{\"capabilities\":{\"add\":[],\"drop\":[\"ALL\"]}},\"memory\":64,\"mountPoints\":[],\"name\":\"deadline\",\"portMappings\":[],\"readonlyRootFilesystem\":true,\"stopTimeout\":30,\"systemControls\":[],\"user\":\"65534:65534\",\"volumesFrom\":[]},{\"command\":[\"codec\"],\"cpu\":4032,\"dependsOn\":[{\"condition\":\"START\",\"containerName\":\"deadline\"}],\"entryPoint\":[\"/usr/local/bin/carlos-media\"],\"environment\":[{\"name\":\"TMPDIR\",\"value\":\"/scratch/tmp\"}],\"essential\":true,\"image\":\"123456789012.dkr.ecr.eu-west-1.amazonaws.com/carlos-test-media@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\"linuxParameters\":{\"capabilities\":{\"add\":[],\"drop\":[\"ALL\"]}},\"logConfiguration\":{\"logDriver\":\"awslogs\",\"options\":{\"awslogs-group\":\"/carlos/carlos-test-media/engine\",\"awslogs-region\":\"eu-west-1\",\"awslogs-stream-prefix\":\"media\"}},\"memory\":8128,\"mountPoints\":[{\"containerPath\":\"/scratch\",\"readOnly\":false,\"sourceVolume\":\"scratch\"}],\"name\":\"codec\",\"portMappings\":[],\"readonlyRootFilesystem\":true,\"stopTimeout\":30,\"systemControls\":[],\"user\":\"65534:65534\",\"volumesFrom\":[]}]" |
| } |
| } |
| } |