-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.sample-env
More file actions
59 lines (49 loc) · 2.44 KB
/
.sample-env
File metadata and controls
59 lines (49 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Environment Variables for Feature Flag Backend
# Copy this file to .env for local development
# ============================================
# REQUIRED - Core Configuration
# ============================================
# Environment type: DEVELOPMENT, TESTING, or PRODUCTION
# - DEVELOPMENT/TESTING: Uses local DynamoDB (http://host.docker.internal:8000)
# - PRODUCTION: Uses AWS DynamoDB (requires AWS credentials/IAM role)
ENVIRONMENT=DEVELOPMENT
# AWS Region (required for DEVELOPMENT/TESTING when using local DynamoDB)
# Can be any valid AWS region (e.g., us-east-1, us-west-2)
# Note: For local development, this is only used for AWS SDK config, not actual AWS calls
AWS_REGION=us-east-1
# ============================================
# OPTIONAL - Local JWT Public Key (for local testing)
# ============================================
# JWT_PUBLIC_KEY - RSA public key in PEM format (for local development only)
# If set, this will be used instead of fetching from AWS SSM Parameter Store
# This allows you to test locally without AWS credentials
#
# To get the public key:
# 1. Contact your team to get the public key
# 2. Or extract it from AWS SSM: aws ssm get-parameter --name STAGING_RDS_BACKEND_PUBLIC_KEY --with-decryption
# 3. Format: Must be PEM format (starts with "-----BEGIN PUBLIC KEY-----")
#
# Example:
# JWT_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----
# MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...
# -----END PUBLIC KEY-----"
#
# Leave empty to use AWS SSM Parameter Store (requires AWS credentials)
# JWT_PUBLIC_KEY=
# ============================================
# AUTOMATICALLY SET IN TEMPLATE.YAML
# (Not needed in .env file - shown for reference only)
# ============================================
# RDS_BACKEND_PUBLIC_KEY_NAME - Automatically set based on environment
# PRODUCTION: "PROD_RDS_BACKEND_PUBLIC_KEY"
# DEVELOPMENT: "STAGING_RDS_BACKEND_PUBLIC_KEY"
# Used for JWT token validation (fetches public key from AWS Systems Manager)
# SESSION_COOKIE_NAME - Automatically set based on environment
# PRODUCTION: "rds-session"
# DEVELOPMENT: "rds-session-staging"
# Used to extract JWT token from HTTP cookies
# Lambda Function Names - Automatically set in template.yaml
# CreateFeatureFlagFunction, GetFeatureFlagFunction, etc.
# Used by rateLimiterLambda and resetLimitLambda to manage concurrency
# RateLimiterFunction - Automatically set in template.yaml
# Used by CheckRequestAllowed to disable Lambda concurrency when quota is reached