runtime-service's Terraform module: the table, the API, the relay, the intake from EventBridge, the SBOM bucket - #64
Merged
Conversation
…e intake from EventBridge, the SBOM bucket Modeled on work-service's: the shared table shape (prevent_destroy, PITR, TTL), the API behind the Web Adapter on an HTTP API, the relay on a schedule under the spine's policy with its own archive prefix. runtime-service's own: a bucket for the SBOMs the pipelines put under sbom/<application>/, which every function may only read; with `intake`, a rule on the default bus for maestro.build and maestro.deploy into its own queue and the intake function; with `signals`, a digest mismatch sent to work-service's intake (SIGNALS=work on the API and the intake, the client secret through `secrets`). Ten mocked-provider tests, an example root, and a workflow that also boots the bundles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The module a tenant's root calls to deploy runtime-service (ADR-0027), modeled on work-service's.
What it makes
gsi1,gsi2, the sparsependingindex, TTL, PITR,prevent_destroy.sbom/<application>/; every function may onlyGetObjectthere.RECORD_SINK=off, a 5xx alarm and the gateway's access log.archive_prefix(e.g.runtime/), and alarms for errors, silence, and a refusal (componentruntime).intake. An EventBridge rule on the default bus formaestro.buildandmaestro.deploy(overridablesources) feeds runtime-service's own queue, next to work-service's rule for the same deploys. Also: a DLQ with its alarm, the intake function acting as the namedprn-w-…workload withReportBatchItemFailures, and IAM for the table (no Scan), a read of the SBOMs, and the queue.signals.SIGNALS=work,WORK_API_URL,SIGNALS_TOKEN_URLandSIGNALS_CLIENT_IDon both the API and the intake, since both record deploys.SIGNALS_CLIENT_SECRETcomes throughsecrets. Without it,SIGNALS=log.What the tenant adds
s3:PutObjecton<bucket_arn>/sbom/<application>/*, next to itsevents:PutEvents.intaketo runtime-service's workspace.signals, a client-credentials client whose workload is admitted withintaketo work-service's workspace. Its secret goes in Secrets Manager.archive_prefix.Also
.github/workflows/runtime-terraform.yml: fmt, validate, tests, the example root, and bundles that boot. The API boot was checked locally: it gets as far as the database.runtime/README.mdhas an On AWS section; runtime-service.md's status line and its ports now name the module.checkout-components.shalready buildsruntime/api(lockfile ≤ 3 deep); only its comment is updated.deploy.shneeded nothing: its deploy events come from the tenant'sdeploy-events.json.Checks
terraform test: 10 passed.🤖 Generated with Claude Code