diff --git a/infra/lake-destroy-prep.ts b/infra/lake-destroy-prep.ts deleted file mode 100644 index 842776a157..0000000000 --- a/infra/lake-destroy-prep.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Temporary destroy prep: keep only non-empty resources declared so SST updates forceDestroy before omission. -new aws.s3tables.TableBucket("LakeTableBucket", { - name: `opencode-${$app.stage}-lake`, - forceDestroy: true, -}) - -const athenaResultsBucket = new aws.s3.Bucket("LakeAthenaResults", { - bucket: `opencode-${$app.stage}-lake-athena-results`, - forceDestroy: true, -}) - -new aws.s3.Bucket("LakeFirehoseErrors", { - bucket: `opencode-${$app.stage}-lake-firehose-errors`, - forceDestroy: true, -}) - -new aws.athena.Workgroup("LakeAthenaWorkgroup", { - name: `opencode-${$app.stage}-lake-workgroup`, - forceDestroy: true, - configuration: { - enforceWorkgroupConfiguration: true, - publishCloudwatchMetricsEnabled: true, - resultConfiguration: { - outputLocation: $interpolate`s3://${athenaResultsBucket.bucket}/`, - }, - }, -}) diff --git a/infra/stage.ts b/infra/stage.ts index 18a9d6222a..beb3f5925b 100644 --- a/infra/stage.ts +++ b/infra/stage.ts @@ -7,7 +7,6 @@ export const domain = (() => { export const zoneID = "430ba34c138cfb5360826c4909f99be8" // Dev owns the shared AWS lake/stats infra for all non-production stages. export const awsStage = $app.stage === "production" ? "production" : "dev" -export const prepareAwsDestroy = $app.stage === "production" || $app.stage === "dev" // Temporarily omit AWS infra so SST removes the lake/stats resources. export const deployAws = false diff --git a/sst.config.ts b/sst.config.ts index 0976d933b7..550f91c6f3 100644 --- a/sst.config.ts +++ b/sst.config.ts @@ -2,9 +2,6 @@ export default $config({ app(input) { - const prepareAwsDestroy = input.stage === "production" || input.stage === "dev" - // Temporarily omit AWS infra so SST removes the lake/stats resources. - const deployAws = false return { name: "opencode", removal: input?.stage === "production" ? "retain" : "remove", @@ -33,9 +30,6 @@ export default $config({ async run() { const stage = await import("./infra/stage.js") await import("./infra/app.js") - if (stage.prepareAwsDestroy) { - await import("./infra/lake-destroy-prep.js") - } if (stage.deployAws) { await import("./infra/lake.js") await import("./infra/stats.js")