ADR-023: Credits Account in us-east-2 and Manual Deploys (No GitHub OIDC)
- Status: Accepted
- Date: 2026-10-19
Context
The single-host stack (ADR-021, ADR-022) costs roughly $12.85/month. The Free Plan credits that pay for it belong to one AWS account; running the stack in an account without credits would send the cost to a card.
That account is subject to organization-level policies that are outside the project's control:
- EC2 calls succeed only in
us-east-2; other regions return an explicit policy deny. - The GitHub OIDC login is not usable, so no workflow can assume an IAM role.
- S3, SSM, IAM roles and AWS Budgets work.
Whether upgrading the account from the Free Plan lifts these limits was not tested.
Decision
| Concern | Decision |
|---|---|
| Account | The Free Plan credits account (account identifiers are kept out of the public docs) |
| Region | us-east-2 for the state bucket and the whole stack |
| CI to AWS | None. No OIDC provider, no deploy role, no long-lived AWS keys in GitHub |
| Image build | GitHub Actions builds and pushes ghcr.io/alonsovndev/open-projects-hub-api:<tag> on a vX.Y.Z tag |
| Deploy | A person runs scripts/deploy-release.sh <tag> (API repository) with their own AWS credentials. It runs the restricted ophub-prod-deploy SSM document and smoke-tests the API through Cloudflare |
| Teardown | By hand from a workstation; steps are in the infrastructure README |
Consequences
- The credits pay for the host. The Free Plan is time-limited, so the period, not the balance, is the likely limit; the current balance is tracked in the AWS console, not in these docs. After the period the account must be upgraded or the system rehosted; that decision is TBD.
- A release needs two steps: push the tag (image) and run the script (deploy). Nothing deploys without a person holding AWS credentials, which also removes the risk that anyone able to push a tag deploys as root on the host.
- The cost figures in ADR-021 are
us-east-1list prices; whetherus-east-2differs is TBD (not checked). The gross-usage budget makes any difference visible. - Other organization-level limits may appear later; they surface as "explicit deny in a service control policy" errors.
- No audit trail of deploys in GitHub; SSM Run Command history in the account records them.
Alternatives Considered
- Use an AWS account without credits (
us-east-1, OIDC works). Rejected: about $12.85/month on a card. - Credits account with IAM user keys stored as GitHub secrets. Keeps automatic deploys but adds long-lived keys; not selected.
- Ask for the policies to be lifted, or upgrade the plan. Not pursued; may be revisited. If the limits go away, an OIDC-based automatic deploy can be added.