Skip to content

Add manual Seed Admin workflow - #6

Merged
ezekielelvis merged 1 commit into
mainfrom
feature/seed-admin-workflow
Aug 2, 2026
Merged

ezekielelvis merged 1 commit into
mainfrom
feature/seed-admin-workflow

Conversation

@ezekielelvis

Copy link
Copy Markdown
Contributor

Summary

  • No Admin account exists after a fresh deploy — Deploy never creates one automatically, by design (see docs/decisions.md).
  • Adds .github/workflows/seed-admin.yml: manual workflow_dispatch job (email/name/password inputs) that reuses Deploy's AWS credentials, resolves UserPoolId (Api stack) and UsersTableName (Database stack) from CloudFormation outputs, and runs scripts/seed-admin.ts. No local AWS CLI setup needed.
  • Adds a UsersTableName CfnOutput to DatabaseStack so the table name is read from the stack rather than a hardcoded naming convention.
  • Updates the README's "Creating the first Admin" section to point at the new workflow first, with the manual/local path kept as a fallback.

Test plan

  • pnpm run typecheck (infrastructure) — clean
  • pnpm run synth — all stacks synthesize, UsersTableName output present
  • Trigger Seed Admin from the Actions tab after this merges and confirm the Admin can log in via POST /auth/login

🤖 Generated with Claude Code

…AWS creds

Deploy never creates an Admin account automatically (by design — see
docs/decisions.md), and until now the only way to seed one required a
local AWS CLI setup plus manually looking up UserPoolId/UsersTableName.

Adds .github/workflows/seed-admin.yml: a workflow_dispatch job that reuses
Deploy's AWS credentials, resolves both identifiers from the Api/Database
stacks' CloudFormation outputs, and runs scripts/seed-admin.ts. Also adds
a UsersTableName CfnOutput to DatabaseStack so the table name comes from
the stack instead of a hardcoded naming convention duplicated in the
workflow.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@sourcery-ai sourcery-ai Bot 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.

Hi @ezekielelvis! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@ezekielelvis
ezekielelvis merged commit a8a784b into main Aug 2, 2026
2 checks passed
@ezekielelvis
ezekielelvis deleted the feature/seed-admin-workflow branch August 2, 2026 17:32
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.

1 participant