The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 06:00 UTC
| 1 | import { Task } from "@alchemy.run/aws/ECS/Task"; |
| 2 | import * as Redacted from "effect/Redacted"; |
| 3 | |
| 4 | /** 26 characters: `buildsecrets/Dockerfile` checks for "hello 26". */ |
| 5 | export const BUILD_SECRET = "alchemy-build-secret-value"; |
| 6 | |
| 7 | /** |
| 8 | * A one-shot `AWS.ECS.Task` built from `buildsecrets/Dockerfile` with a |
| 9 | * build arg and a BuildKit secret. Its command exits 0 only when the build |
| 10 | * saw both. |
| 11 | */ |
| 12 | export default Task("EcsBuildSecretsTask", { |
| 13 | context: `${import.meta.dirname}/buildsecrets`, |
| 14 | build: { |
| 15 | args: { GREETING: "hello" }, |
| 16 | secrets: { token: Redacted.make(BUILD_SECRET) }, |
| 17 | }, |
| 18 | cpu: 256, |
| 19 | memory: 512, |
| 20 | // Build/run on ARM64 so an image built on an Apple Silicon host matches |
| 21 | // the Fargate runtime architecture (Graviton). |
| 22 | runtimePlatform: { |
| 23 | cpuArchitecture: "ARM64", |
| 24 | operatingSystemFamily: "LINUX", |
| 25 | }, |
| 26 | }); |