04d0f4b123
* feat: support standard AWS env vars and default credential chain Replace non-standard AWS_ACCESS_KEY / AWS_SECRET_KEY with the AWS-standard AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY. The old names are kept as fallbacks in the runtimeEnv for backward compatibility. Both vars are now optional. When omitted, the credentials object is not passed to SESv2Client, STSClient, or SNSClient — the AWS SDK then falls back to its default provider chain (IAM roles, ECS task roles, instance profiles, etc.), which is the recommended approach for cloud-native deployments. Closes #316 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * refactor: extract shared getAwsCredentialOptions helper and add partial-config guard - Move the credential spread logic into a single credentials.ts helper so SESv2Client, STSClient, and SNSClient all share one implementation - Throw a clear error if only one of AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY is set, preventing silent fallback to the default provider chain with a half-configured environment Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix: align AWS env vars in docker and docs * fix: use alias import for AWS credentials helper --------- Co-authored-by: purva <purvahk08@gmail.com> Co-authored-by: Purva Kandalgaonkar <136103488+purva-8@users.noreply.github.com>
29 lines
681 B
Bash
29 lines
681 B
Bash
DATABASE_URL="postgresql://usesend:password@localhost:54320/usesend"
|
|
REDIS_URL="redis://localhost:6379"
|
|
|
|
|
|
|
|
NEXTAUTH_URL="http://localhost:3000"
|
|
|
|
SMTP_HOST=smtp.mailtrap.io # Example SMTP host
|
|
SMTP_USER=test_userdadad@example.com # Example SMTP user
|
|
|
|
|
|
AWS_DEFAULT_REGION="us-east-1"
|
|
AWS_ACCESS_KEY_ID="some-access-key"
|
|
AWS_SECRET_ACCESS_KEY="some-secret-key"
|
|
AWS_SES_ENDPOINT="http://localhost:3003/api/ses"
|
|
AWS_SNS_ENDPOINT="http://localhost:3003/api/sns"
|
|
|
|
NEXTAUTH_SECRET=""
|
|
|
|
FROM_EMAIL="hello@usesend.com"
|
|
|
|
API_RATE_LIMIT=2
|
|
AUTH_EMAIL_RATE_LIMIT=5
|
|
|
|
# Optional: prefix all Redis keys (useful for shared Redis with ACL isolation)
|
|
# REDIS_KEY_PREFIX=""
|
|
|
|
NEXT_PUBLIC_IS_CLOUD=true
|