This doc assumes that you already configured IAM Identity Center authentication. Please follow this instructions.
Verify available profiles:
cat ~/.aws/configExpected output:
[profile my-profile]
sso_session = my-sso
sso_account_id = 123456789012
sso_role_name = AdministratorAccess
region = ap-northeast-1Login using AWS SSO:
aws sso login --profile <your-profile>Set the profile for the current shell:
export AWS_PROFILE=<your-profile>Verify authentication:
aws sts get-caller-identityExpected output:
{
"Account": "...",
"Arn": "...",
"UserId": "..."
}Install dependencies:
uv syncpnpm installStart development environment:
pnpm devIn order to run scheduled functions manually for testing purpose, we can trigger the function in AWS Console.
Run unit tests:
uv run pytestRun Linter:
uv run ruff check .uv run ruff check . --fixSet the connection string for the current shell:
export DATABASE_URL='postgresql://...'Apply pending migrations:
pnpm db:migrateCreate a new migration:
pnpm db:new <migration_name>Rollback the latest migration:
pnpm db:rollbackCheck migration status:
pnpm db:statusList deployed stages:
pnpm state:listShow deployed resources for dev:
pnpm state:devShow deployed resources for prod:
pnpm state:prodRemove deployed dev resources:
pnpm remove:devRemove deployed prod resources:
pnpm remove:prod