From 3c7f6084750461f7f21d6f8c706fa016c3092430 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Mon, 25 May 2026 18:14:39 -0500 Subject: [PATCH] fix: aws stages --- infra/stage.ts | 4 +++- sst.config.ts | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/infra/stage.ts b/infra/stage.ts index 27df5f300c..f988672389 100644 --- a/infra/stage.ts +++ b/infra/stage.ts @@ -5,7 +5,9 @@ export const domain = (() => { })() export const zoneID = "430ba34c138cfb5360826c4909f99be8" -export const deployAws = $app.stage === "production" || $app.stage === "dev" || $app.stage === "adam" +// Dev owns the shared AWS lake/stats infra for all non-production stages. +export const awsStage = $app.stage === "production" ? "production" : "dev" +export const deployAws = $app.stage === awsStage const githubActionsDeployRole = (() => { if ($app.stage !== "dev" && $app.stage !== "production") return diff --git a/sst.config.ts b/sst.config.ts index 19080b8f1a..cc04bd1a91 100644 --- a/sst.config.ts +++ b/sst.config.ts @@ -2,7 +2,9 @@ export default $config({ app(input) { - const deployAws = input.stage === "production" || input.stage === "dev" || input.stage === "adam" + // Dev owns the shared AWS lake/stats infra for all non-production stages. + const awsStage = input.stage === "production" ? "production" : "dev" + const deployAws = input.stage === awsStage return { name: "opencode", removal: input?.stage === "production" ? "retain" : "remove", @@ -48,6 +50,7 @@ export default $config({ return { StatWorkerUrl: stat.url, // StatsUrl: stats.app.url, + AwsStage: stage.awsStage, ...(stage.githubActionsDeployRoleArn ? { GithubActionsDeployRoleArn: stage.githubActionsDeployRoleArn } : {}), } },