Skip to content

Support ongoing Scope EC2 deployments after promotional credits - #284

Merged
lhd2156 merged 1 commit into
mainfrom
App/scope-aws-account-migration
Oct 3, 2026
Merged

lhd2156 merged 1 commit into
mainfrom
App/scope-aws-account-migration

Conversation

@lhd2156

@lhd2156 lhd2156 commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

The original deployment guard expires with promotional credits, preventing an ongoing Scope EC2 deployment. This adds a recurring monthly guard mode with a $48 planning ceiling and monthly budget, while preserving the existing expired-credit-window rejection. CPU-credit mode, AMI, destination account allowlist, and budget recipients can be supplied through production variables.

Plan and apply now receive the same backup/variable-usage reserve. The EC2 snapshot policy avoids duplicate Name tags, and new host bootstrap configures Docker log rotation and build-cache collection after the original host exhausted disk space.

Validation: Terraform formatting and validation passed; all three mocked guard tests passed; deployment YAML parsed successfully. The destination production foundation applied with the original AMI, t3a.medium, encrypted 80 GiB gp3, and Unlimited CPU-credit mode. GitHub OIDC plan run 37101975432 passed against the destination backend and proposed one in-place disk-settings update, with no creates, replacements, or deletions. Production apply continues to require main.

Scope is live in the new AWS account. The cold-copy comparison matched all 51 persistent paths, all 44 SQL tables and 2,842 rows matched, and all 39 archived S3 assets matched. The original 21 running services passed restart and functional checks. The original server is stopped, its disk and snapshots retained, and temporary migration sharing removed. The deployed application images were preserved without rebuilding application code.

Infrastructure and security checks pass. Four CI jobs fail in unchanged application files: Core's SQLCipher dependency advisory, Intel's missing _has_travel_party_brief method, Frontend's UpcomingDenverRoute test, and Admin formatting in src/index.css. These application failures are outside this infrastructure-only change.

The $48 AWS Budget is a planning threshold, not a hard billing cap. Email subscriptions remain empty until a recipient is selected.

@lhd2156
lhd2156 deployed to production October 3, 2026 06:06 — with GitHub Actions Active
@lhd2156
lhd2156 deployed to production October 3, 2026 06:15 — with GitHub Actions Active
@lhd2156
lhd2156 marked this pull request as ready for review October 3, 2026 06:21
Copilot AI balanced review requested due to automatic review settings October 3, 2026 06:21
@lhd2156
lhd2156 merged commit 244c476 into main Oct 3, 2026
30 of 35 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

This branch had an error being deployed

1 failed deployment
production — 46a54347 Deployed Oct 3, 2026 by lhd2156 via Terraform apply (production / ec2-compose) #177
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants