Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Environment Configuration Example
# Copy this file to .env.dev or .env.prod and configure your values

# Source S3 Buckets
# Comma-separated list of S3 bucket names that the solution can access
# Example: my-images-bucket,my-other-bucket
SOURCE_BUCKETS=lumberscan-image-resizer

# Deploy Demo UI
# Set to "Yes" to deploy the demo UI, "No" to skip
# Default: No
DEPLOY_DEMO_UI=No

# Enable S3 Object Lambda (DEPRECATED)
# WARNING: S3 Object Lambda architecture has been deprecated
# Only set to "Yes" if you were an existing user before November 7, 2025
# Default: No
ENABLE_S3_OBJECT_LAMBDA=No

# Enable CloudFront Signed URLs (for private content)
# Set to "Yes" to require signed URLs for all image requests
# This provides time-limited access to your images
# Requires TRUSTED_KEY_GROUP_IDS to be configured
# Default: No
ENABLE_SIGNED_URLS=No

# Trusted CloudFront Key Group IDs
# Comma-separated list of CloudFront key group IDs for signed URL validation
# Required when ENABLE_SIGNED_URLS is Yes
# Example: 1234abcd-56ef-78gh-90ij-klmnopqrstuv,abcd1234-efgh-5678-ijkl-mnopqrstuvwx
# See SIGNED_URLS.md for setup instructions
TRUSTED_KEY_GROUP_IDS=

# CORS Configuration
# Enable Cross-Origin Resource Sharing (CORS) for the image handler API
# Set to "Yes" to allow cross-origin requests from web browsers
# Default: No
CORS_ENABLED=No

# CORS Allowed Origin
# Specify which origins can access the API
# Use "*" to allow any origin (less secure but convenient for testing)
# Use a specific domain for production: https://example.com
# Only applies when CORS_ENABLED is Yes
# Default: *
CORS_ORIGIN=*

# Additional CDK Context (optional)
# You can add any additional CDK context variables here
# These will be available during deployment
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ demo-ui-config.js
.temp_redpencil
bom.json

# deployment environment files (keep .env.example)
.env.dev
.env.prod
.env.staging

# System Files
**/.DS_Store
**/.vscode
Expand Down
Loading