carlos / platform Public

infra: keep media revisions live, fix result listing and DNS

Astra round 1 of plan 3 Task 11.

Task definitions set skip_destroy, so a new digest leaves active the
revisions a running console still launches. The README gives the
rollout: a console moves at its next restart, and old revisions are
retired once no console references them.

The console's s3:ListBucket on the deployment bucket loses its s3:prefix
condition. GetObject carries no prefix, so an absent result read as 403.

The DNS firewall's ALLOW rule trusts AWS's redirects from an allowed
name. The BLOCK rule is unchanged. Real transfers and an ECR pull join
the activation gates, because the CNAME chain is unproven until then.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 571aa53a1d2bdb8eb7948f092f199dc99353a18a parent ea2048d
8 files changed, +62 −25
  • docs/superpowers/notes/media-conversion-copy-deck.md +2 −0
  • docs/superpowers/plans/2026-11-16-media-conversion-plan-3-engine.md +2 −2
  • infra/modules/media-engine/README.md +19 −5
  • infra/modules/media-engine/ecs.tf +5 −0
  • infra/modules/media-engine/iam.tf +7 −5
  • infra/modules/media-engine/network.tf +4 −0
  • infra/modules/media-engine/tests/media_engine.tftest.hcl +16 −8
  • internal/mediaaws/module_test.go +7 −5

CI failed — run details

diff --git a/docs/superpowers/notes/media-conversion-copy-deck.md b/docs/superpowers/notes/media-conversion-copy-deck.md
index df71c34ed..db1a2c26d 100644
--- a/docs/superpowers/notes/media-conversion-copy-deck.md
+++ b/docs/superpowers/notes/media-conversion-copy-deck.md
@@ -701,6 +701,8 @@ reaper's lines reach only the task's stop reason and the function's own log.
|---|---|
| `infra.media_engine.readme` | The whole of `infra/modules/media-engine/README.md` (pending Luna pass; plan 3 Task 11) |
| `infra.modules_readme.media_engine` | The `media-engine` section of `infra/modules/README.md` (pending Luna pass; plan 3 Task 11) |
+| `infra.media_engine.readme.rollout` | The `Change the image` and `Roll back` sections of `infra/modules/media-engine/README.md`, and the sentence on deregistering revisions under `Removing the module` (pending Luna pass; plan 3 Task 11 fix 1) |
+| `infra.media_engine.readme.transfers_gate` | The last activation check in `infra/modules/media-engine/README.md`, on transfers resolving and the ECR image pull (pending Luna pass; plan 3 Task 11 fix 1) |
| `infra.media_engine.descriptions` | Every variable and output `description` in `infra/modules/media-engine/variables.tf` and `outputs.tf` (pending Luna pass; plan 3 Task 11) |
| `infra.media_engine.refused.variables` | Every `error_message` in `infra/modules/media-engine/variables.tf` (pending Luna pass; plan 3 Task 11) |
| `infra.media_engine.refused.region` | `The media engine must run in the store region: region and store_region differ.` (pending Luna pass; plan 3 Task 11) |
diff --git a/docs/superpowers/plans/2026-11-16-media-conversion-plan-3-engine.md b/docs/superpowers/plans/2026-11-16-media-conversion-plan-3-engine.md
index 7e83c8694..ef45edb6d 100644
--- a/docs/superpowers/plans/2026-11-16-media-conversion-plan-3-engine.md
+++ b/docs/superpowers/plans/2026-11-16-media-conversion-plan-3-engine.md
@@ -244,7 +244,7 @@ Depends on plan 1 Task 3 Step 4: the muxer rules and the parser's accepted box s
**Interfaces:**
- Variables (`pdf-host`'s style): `name`, `region`, `store_region`, `store_bucket_prefix`, `deployment_bucket_name`, `console_role_name`, `console_role_arn`, `image_digest` (default `""`), `image_built_at`, `image_ffmpeg`, `vpc_cidr` (default `10.98.0.0/24`), `logs` (default `true`), `log_retention_days` (default 14), `reaper_max_age_minutes` (default 70), `classes` (default: the four rows, each `{preset, class, cpu, memory}`: `video-720p/short` 4096/8192, `video-720p/long` 16384/32768, `audio-aac/short` 1024/2048, `audio-aac/long` 2048/4096; spike).
- Outputs: `carlos_media_engine` (`""` while `image_digest` is `""`; else `jsonencode` of plan 3 Task 9's `Config` with `v = 1`), `repository_url`, `cluster_arn`, `conversion_role_arn`.
-- Resources: an ECR repository (`IMMUTABLE` tags, scan on push); the VPC with DNS support and hostnames, two private `/25` subnets in two zones, one route table with no default route, no internet gateway and no NAT; a tasks security group with no ingress and egress only TCP 443 to the S3 prefix list and to the endpoints' security group; the endpoints' group admitting TCP 443 from the tasks' group only; an S3 gateway endpoint and interface endpoints `ecr.api`, `ecr.dkr` and (when `logs`) `logs`, private DNS on; their policies (below); a Route 53 Resolver DNS Firewall with an allow list (`s3.<region>.amazonaws.com`, `*.s3.<region>.amazonaws.com`, `api.ecr.<region>.amazonaws.com`, `*.dkr.ecr.<region>.amazonaws.com`, `logs.<region>.amazonaws.com`) at priority 100 `ALLOW` and `*` at 200 `BLOCK` with `NXDOMAIN`, associated with the VPC with mutation protection on, and `firewall_fail_open` `DISABLED`; a log group; the task execution role (trust `ecs-tasks.amazonaws.com` with `aws:SourceAccount`; `ecr:GetAuthorizationToken` on `*`, the three pull actions on the repository, `logs:CreateLogStream` and `logs:PutLogEvents` on the log group); the conversion role (trust: `console_role_arn` only; Allow `s3:GetObject` on `arn:aws:s3:::<prefix>*/*`, `s3:PutObject` on `arn:aws:s3:::<prefix>*/derived/*` and on `arn:aws:s3:::<deployment bucket>/media-results/*`; Deny `s3:GetObject` on `arn:aws:s3:::<prefix>*/*` when `s3:ExistingObjectTag/carlos-scan` is `infected`; Deny `s3:PutObject` on `*` when `ForAnyValue:StringEquals s3:RequestObjectTagKeys` is any of `carlos-scan`, `carlos-scan-version`, `carlos-scan-at`, `carlos-scan-sig`; max session 3600 s); the cluster (Fargate only, Container Insights off); four task definitions (one per `classes` entry, family `<name>-<preset>-<class>`, the Global Constraints' container shape, `deadline` with 64 CPU units and 64 MiB, `codec` with the rest, `codec` env `TMPDIR=/scratch/tmp`, `awslogs` on `codec` only when `logs`, `runtime_platform` `LINUX`/`ARM64`, no `task_role_arn`, no `pid_mode`, volume `scratch` with no host path; if plan 1 reports that RunTask refuses `ephemeralStorage` per run, each definition instead sets `ephemeral_storage` to its class's largest need, 48 GiB for video long and the 20 GiB default elsewhere, and `EphemeralGiB` is never sent), created only when `image_digest` is set; a role policy on `console_role_name` (`sts:AssumeRole` on the conversion role; `ecs:RunTask` on `arn:aws:ecs:<region>:<acct>:task-definition/<name>-*:*` with `ArnEquals ecs:cluster`; `ecs:DescribeTasks` and `ecs:StopTask` on `arn:aws:ecs:<region>:<acct>:task/<cluster>/*`; `ecs:ListTasks` on `*` with `ArnEquals ecs:cluster`; `ecs:DescribeTaskDefinition` on `*`; `iam:PassRole` on the execution role with `iam:PassedToService` `ecs-tasks.amazonaws.com`); the reaper (a Python 3.13 arm64 Lambda from `reaper/reaper.py`, env `CLUSTER` and `MAX_AGE_MINUTES`, timeout 50 s, its own log group, a role with `ecs:ListTasks` under the cluster condition, `ecs:DescribeTasks` and `ecs:StopTask` on the cluster's tasks and logging to its own group only, an EventBridge rule `rate(1 minute)` targeting it); a precondition that `region == store_region`.
+- Resources: an ECR repository (`IMMUTABLE` tags, scan on push); the VPC with DNS support and hostnames, two private `/25` subnets in two zones, one route table with no default route, no internet gateway and no NAT; a tasks security group with no ingress and egress only TCP 443 to the S3 prefix list and to the endpoints' security group; the endpoints' group admitting TCP 443 from the tasks' group only; an S3 gateway endpoint and interface endpoints `ecr.api`, `ecr.dkr` and (when `logs`) `logs`, private DNS on; their policies (below); a Route 53 Resolver DNS Firewall with an allow list (`s3.<region>.amazonaws.com`, `*.s3.<region>.amazonaws.com`, `api.ecr.<region>.amazonaws.com`, `*.dkr.ecr.<region>.amazonaws.com`, `logs.<region>.amazonaws.com`) at priority 100 `ALLOW` with `firewall_domain_redirection_action` `TRUST_REDIRECTION_DOMAIN` (AWS answers these names through its own CNAMEs; Astra round 1 of Task 11) and `*` at 200 `BLOCK` with `NXDOMAIN` and the default redirection handling, associated with the VPC with mutation protection on, and `firewall_fail_open` `DISABLED`; a log group; the task execution role (trust `ecs-tasks.amazonaws.com` with `aws:SourceAccount`; `ecr:GetAuthorizationToken` on `*`, the three pull actions on the repository, `logs:CreateLogStream` and `logs:PutLogEvents` on the log group); the conversion role (trust: `console_role_arn` only; Allow `s3:GetObject` on `arn:aws:s3:::<prefix>*/*`, `s3:PutObject` on `arn:aws:s3:::<prefix>*/derived/*` and on `arn:aws:s3:::<deployment bucket>/media-results/*`; Deny `s3:GetObject` on `arn:aws:s3:::<prefix>*/*` when `s3:ExistingObjectTag/carlos-scan` is `infected`; Deny `s3:PutObject` on `*` when `ForAnyValue:StringEquals s3:RequestObjectTagKeys` is any of `carlos-scan`, `carlos-scan-version`, `carlos-scan-at`, `carlos-scan-sig`; max session 3600 s); the cluster (Fargate only, Container Insights off); four task definitions (one per `classes` entry, family `<name>-<preset>-<class>`, the Global Constraints' container shape, `deadline` with 64 CPU units and 64 MiB, `codec` with the rest, `codec` env `TMPDIR=/scratch/tmp`, `awslogs` on `codec` only when `logs`, `runtime_platform` `LINUX`/`ARM64`, no `task_role_arn`, no `pid_mode`, volume `scratch` with no host path; if plan 1 reports that RunTask refuses `ephemeralStorage` per run, each definition instead sets `ephemeral_storage` to its class's largest need, 48 GiB for video long and the 20 GiB default elsewhere, and `EphemeralGiB` is never sent), created only when `image_digest` is set, each with `skip_destroy = true` so a new digest leaves active the revisions a running console still launches; a role policy on `console_role_name` (`sts:AssumeRole` on the conversion role; `ecs:RunTask` on `arn:aws:ecs:<region>:<acct>:task-definition/<name>-*:*` with `ArnEquals ecs:cluster`; `ecs:DescribeTasks` and `ecs:StopTask` on `arn:aws:ecs:<region>:<acct>:task/<cluster>/*`; `ecs:ListTasks` on `*` with `ArnEquals ecs:cluster`; `ecs:DescribeTaskDefinition` on `*`; `iam:PassRole` on the execution role with `iam:PassedToService` `ecs-tasks.amazonaws.com`; `s3:ListBucket` on `arn:aws:s3:::<deployment bucket>` with no `s3:prefix` condition, because `GetObject` carries no prefix and an absent result must read as not found); the reaper (a Python 3.13 arm64 Lambda from `reaper/reaper.py`, env `CLUSTER` and `MAX_AGE_MINUTES`, timeout 50 s, its own log group, a role with `ecs:ListTasks` under the cluster condition, `ecs:DescribeTasks` and `ecs:StopTask` on the cluster's tasks and logging to its own group only, an EventBridge rule `rate(1 minute)` targeting it); a precondition that `region == store_region`.
- Endpoint policies: S3 gateway: Allow `s3:GetObject`, `s3:PutObject` on the store prefix and `media-results/*` for principal `*` with `StringEquals aws:PrincipalArn` = the conversion role ARN; Allow `s3:GetObject` on `arn:aws:s3:::prod-<region>-starport-layer-bucket/*` for `*`. ECR API and Docker: Allow `ecr:BatchGetImage`, `ecr:GetDownloadUrlForLayer`, `ecr:BatchCheckLayerAvailability` on the repository and `ecr:GetAuthorizationToken` on `*`, each with `aws:PrincipalArn` = the execution role. Logs: Allow `logs:CreateLogStream`, `logs:PutLogEvents` on the log group with `aws:PrincipalArn` = the execution role.
- `reaper.py`: `handler(event, context)` lists `RUNNING` tasks (paginated), describes them in batches of 100, and stops each whose `createdAt` is older than `MAX_AGE_MINUTES` with reason `carlos media reaper: older than <n> minutes`; it reads no other input.
@@ -256,7 +256,7 @@ Depends on plan 1 Task 3 Step 4: the muxer rules and the parser's accepted box s
A non-null `foreign_principal_arn` must match `^arn:aws:iam::[0-9]{12}:user/carlos-media-drill-[0-9a-f]{16}$` and must not be in the module's own account. Nothing but these five resources may depend on `drill`.
- [ ] **Step 1: Write the failing tests.** Besides the runs below: `drill_off_by_default` (no repository policy, the locked endpoint policies), `drill_closed_admits_only_the_user` (the endpoint policies unchanged, one repository statement), `drill_open_opens_only_the_endpoints`, `drill_refuses_another_principal` (`expect_failures`, a role ARN and an ARN in the module's account), and a Go test that no deployment root in this repository sets `media_engine_drill` to anything but `null` outside dev. `media_engine.tftest.hcl` with `mock_provider "aws" {}`, runs: `region_must_be_store_region` (`expect_failures`); `no_digest_creates_only_the_repository` (no task definitions, `carlos_media_engine == ""`); `task_definitions_pass_the_gate` (for each of four: `task_role_arn == null`, `pid_mode == null`, ARM64, and on `jsondecode(container_definitions)`: names, essential, `dependsOn` `deadline`/`START`, `stopTimeout` 30 both, read-only root, user, caps drop `ALL`, images equal `<repo>@<digest>`, `scratch` mounted in `codec` only, CPU and memory per class); `endpoint_policies_name_their_principals` (every statement of the three interface policies has the execution-role condition; the S3 policy's two statements exactly); `tasks_sg_has_no_ingress_and_only_https_egress`; `no_default_route`; `dns_firewall_allows_three_services_and_blocks_the_rest`; `conversion_role_policy_exact` (three Allows, two Denies, trust only the console role); `console_policy_exact`; `reaper_role_is_cluster_scoped`; `output_parses` (the output's JSON has `v` 1, the region, four task definitions and the image). `reaper_test.py` (stdlib `unittest`, a stub client): an old task is stopped, a young one is not, pagination across two pages, a describe failure stops nothing.
- [ ] **Step 2:** Run `cd infra/modules/media-engine && tofu init -backend=false && tofu test` and `python3 -I -m unittest discover -s infra/modules/media-engine/reaper`. Expected: FAIL.
-- [ ] **Step 3:** Implement. `tofu fmt -check` and `tofu validate` clean. Write the README in `pdf-host`'s shape (what it is, the two-phase apply: repository first, then the digest; wiring `carlos_media_engine` → `CARLOS_MEDIA_ENGINE`; the region rule; the activation gates of spec §5.5; rollback by digest); copy-review it.
+- [ ] **Step 3:** Implement. `tofu fmt -check` and `tofu validate` clean. Write the README in `pdf-host`'s shape (what it is, the two-phase apply: repository first, then the digest; wiring `carlos_media_engine` → `CARLOS_MEDIA_ENGINE`; the region rule; the activation gates of spec §5.5, plus that a real conversion's source and result transfers resolve and an ECR image pull succeeds, since the real CNAME chain is unproven until then; the image change procedure: old revisions stay active, a console moves to the new output at its next restart, and old revisions are retired only after every console has stopped referencing them; rollback by digest); copy-review it.
- [ ] **Step 4:** Rerun Step 2's commands. Expected: PASS.
- [ ] **Step 5:** Commit: `infra: media-engine module, one Fargate task per conversion`.
diff --git a/infra/modules/media-engine/README.md b/infra/modules/media-engine/README.md
index 49058b63c..a92ed3eb5 100644
--- a/infra/modules/media-engine/README.md
+++ b/infra/modules/media-engine/README.md
@@ -75,13 +75,26 @@ deployment:
all when `deadline` fails to start.
- The `deadline` container ends a task whose `codec` ignores every signal and
tries to kill the timer, with the console stopped.
+- A real conversion’s source and result transfers resolve and complete, and a
+ task pulls its image from ECR. The DNS firewall trusts the redirects AWS
+ answers for the allowed names, and only these checks prove those names work.
+
+## Change the image
+
+1. Set `image_digest`, `image_built_at` and `image_ffmpeg` to the new image’s
+ values and apply. The old task definition revisions stay active, so a running
+ console keeps converting on them.
+2. Set each console’s `CARLOS_MEDIA_ENGINE` to the new `carlos_media_engine`
+ output. A console moves to the new revisions at its next restart.
+3. Once every console has stopped referencing the old revisions, retire them
+ with `aws ecs deregister-task-definition`. OpenTofu no longer tracks them, so
+ it will not do this for you.
## Roll back
-Set `image_digest`, `image_built_at` and `image_ffmpeg` back to the previous
-image’s values, apply, and update the console’s `CARLOS_MEDIA_ENGINE` from the
-output. Do the console straight after the apply: the apply retires the revisions
-the console is still using, so new conversions fail until it restarts.
+Follow the same steps with the previous image’s three values. A console keeps
+launching the image it was started with, so a rollback takes effect only when
+that console restarts on the new output.
## The endpoint drill
@@ -92,4 +105,5 @@ policy, and sets it back to `null` when it finishes.
## Removing the module
The DNS firewall’s association with the VPC has mutation protection on, so
-`tofu destroy` cannot remove it. Turn that protection off first.
+`tofu destroy` cannot remove it. Turn that protection off first. Task definition
+revisions stay active after a destroy, so deregister them afterwards.
diff --git a/infra/modules/media-engine/ecs.tf b/infra/modules/media-engine/ecs.tf
index f750a026f..0b05006f7 100644
--- a/infra/modules/media-engine/ecs.tf
+++ b/infra/modules/media-engine/ecs.tf
@@ -50,6 +50,11 @@ resource "aws_ecs_task_definition" "engine" {
memory = each.value.memory
execution_role_arn = aws_iam_role.execution.arn
+ # A running console keeps launching the revisions it was configured with, and
+ # ECS refuses to launch an inactive revision. A new digest therefore leaves
+ # the old revisions active until every console has moved off them.
+ skip_destroy = true
+
runtime_platform {
operating_system_family = "LINUX"
cpu_architecture = "ARM64"
diff --git a/infra/modules/media-engine/iam.tf b/infra/modules/media-engine/iam.tf
index 284681caf..6c05ea94b 100644
--- a/infra/modules/media-engine/iam.tf
+++ b/infra/modules/media-engine/iam.tf
@@ -146,11 +146,13 @@ resource "aws_iam_role_policy" "console" {
Condition = { StringEquals = { "iam:PassedToService" = "ecs-tasks.amazonaws.com" } }
},
{
- Sid = "ListResults"
- Effect = "Allow"
- Action = "s3:ListBucket"
- Resource = "arn:aws:s3:::${var.deployment_bucket_name}"
- Condition = { StringLike = { "s3:prefix" = "media-results/*" } }
+ # S3 answers a missing key with 404 only to a caller that may list the
+ # bucket. GetObject carries no s3:prefix, so a prefix condition here
+ # would turn an absent result into a 403.
+ Sid = "ListResults"
+ Effect = "Allow"
+ Action = "s3:ListBucket"
+ Resource = "arn:aws:s3:::${var.deployment_bucket_name}"
},
]
})
diff --git a/infra/modules/media-engine/network.tf b/infra/modules/media-engine/network.tf
index eb0296996..d43714ade 100644
--- a/infra/modules/media-engine/network.tf
+++ b/infra/modules/media-engine/network.tf
@@ -235,6 +235,10 @@ resource "aws_route53_resolver_firewall_rule" "allow" {
firewall_domain_list_id = aws_route53_resolver_firewall_domain_list.allowed.id
priority = 100
action = "ALLOW"
+
+ # AWS answers these names through CNAMEs of its own. Trusting them inspects
+ # the name a task asked for, which must still be on the allow list.
+ firewall_domain_redirection_action = "TRUST_REDIRECTION_DOMAIN"
}
resource "aws_route53_resolver_firewall_rule" "block" {
diff --git a/infra/modules/media-engine/tests/media_engine.tftest.hcl b/infra/modules/media-engine/tests/media_engine.tftest.hcl
index de7902763..adf62098e 100644
--- a/infra/modules/media-engine/tests/media_engine.tftest.hcl
+++ b/infra/modules/media-engine/tests/media_engine.tftest.hcl
@@ -104,7 +104,7 @@ run "region_must_be_store_region" {
expect_failures = [aws_ecr_repository.engine]
}
-run "no_digest_creates_only_the_repository" {
+run "no_digest_means_no_task_definitions_and_an_empty_console_config" {
command = apply
assert {
condition = length(aws_ecs_task_definition.engine) == 0
@@ -150,6 +150,12 @@ run "task_definitions_pass_the_gate" {
])
error_message = "no task role and no pid mode"
}
+ assert {
+ condition = length(aws_ecs_task_definition.engine) == 4 && alltrue([for td in aws_ecs_task_definition.engine :
+ td.skip_destroy == true
+ ])
+ error_message = "a new digest leaves the revisions a running console still uses active, in all four classes"
+ }
assert {
condition = alltrue([for td in aws_ecs_task_definition.engine :
td.runtime_platform[0].cpu_architecture == "ARM64" && td.runtime_platform[0].operating_system_family == "LINUX"
@@ -435,6 +441,14 @@ run "dns_firewall_allows_three_services_and_blocks_the_rest" {
)
error_message = "the allow list is allowed first"
}
+ assert {
+ condition = aws_route53_resolver_firewall_rule.allow.firewall_domain_redirection_action == "TRUST_REDIRECTION_DOMAIN"
+ error_message = "the allow rule trusts AWS's own redirects from an allowed name"
+ }
+ assert {
+ condition = aws_route53_resolver_firewall_rule.block.firewall_domain_redirection_action == null
+ error_message = "the block rule keeps AWS's default handling of redirects"
+ }
assert {
condition = (
aws_route53_resolver_firewall_rule.block.priority == 200
@@ -543,13 +557,7 @@ run "console_policy_exact" {
Resource = "arn:aws:iam::123456789012:role/carlos-test-media-execution"
Sid = "PassExecutionRole"
},
- {
- Action = "s3:ListBucket"
- Condition = { StringLike = { "s3:prefix" = "media-results/*" } }
- Effect = "Allow"
- Resource = "arn:aws:s3:::carlos-test-deployment"
- Sid = "ListResults"
- },
+ { Action = "s3:ListBucket", Effect = "Allow", Resource = "arn:aws:s3:::carlos-test-deployment", Sid = "ListResults" },
])
error_message = "the console's grants, exactly"
}
diff --git a/internal/mediaaws/module_test.go b/internal/mediaaws/module_test.go
index c7e443bb6..1f83ff78a 100644
--- a/internal/mediaaws/module_test.go
+++ b/internal/mediaaws/module_test.go
@@ -26,9 +26,9 @@ import (
// These tests hold infra/modules/media-engine to the code that consumes it.
// testdata/media-engine-rendered.json is what the module renders under its
-// test suite's mock provider. The gate and the config parser read that file
-// in every run, CI included; TestModuleRenderIsCurrent proves the file is
-// still what the module renders wherever OpenTofu is installed.
+// test suite's mock provider: the four task definitions and the console's
+// configuration output, and nothing about the network or IAM. The gate and the
+// config parser read that file in every run, CI included.
const (
moduleDir = "../../infra/modules/media-engine"
@@ -234,8 +234,10 @@ func renderFromState(raw json.RawMessage) (moduleRender, error) {
return r, nil
}
-// TestModuleRenderIsCurrent runs the module's OpenTofu suite. CI's runner has
-// no OpenTofu, so it skips there and the checked-in render stands in for it.
+// TestModuleRenderIsCurrent runs the module's OpenTofu suite and compares its
+// render with the checked-in file. It skips without OpenTofu, and CI's runner
+// has none. So CI does not notice a module change that leaves the file stale,
+// and the network and IAM assertions run only through a local tofu test.
func TestModuleRenderIsCurrent(t *testing.T) {
tofu, err := exec.LookPath("tofu")
if err != nil {