Breaking Changes
- BREAKING: Removed all legacy CloudFront cache behavior settings
- Removed variables:
forwarded_values,min_ttl,default_ttl,max_ttl - Users must now use CloudFront cache policies via
cache_policy_id - Module defaults to AWS managed "CachingOptimized" policy when
cache_policy_idis null
- Removed variables:
- BREAKING: Cache policy configuration now uses nullable variables
cache_policy_idandorigin_request_policy_idare now properly nullable- When
cache_policy_idis null, the module automatically uses the "CachingOptimized" policy
Added
- Full Next.js SPA example with deployment automation
- Complete example showing SPA deployment with custom error handling
- Automated deployment scripts (deploy-terraform.sh, deploy-s3.sh, deploy.sh)
- Navigation testing app demonstrating various routing scenarios
- Smart 404 page that handles trailing slash redirects
- Build step integrated into deployment process
- CloudFront cache and origin request policy support via nullable variables
- Simplified configuration without hardcoded policy IDs
- Automatic default to "CachingOptimized" when not specified
- Data source integration for referencing AWS managed policies by name
Changed
- Documentation now shows cache policy examples without environment-specific prescriptions
- Examples use data sources to reference AWS managed policies by name instead of hardcoded IDs
- Simplified module usage by removing legacy cache configuration complexity
Migration Guide
Users upgrading from v1.x to v2.0 must:
- Remove any
forwarded_values,min_ttl,default_ttl,max_ttlfrom their configurations - Use
cache_policy_idinstead (or rely on the default "CachingOptimized" policy) - Reference AWS managed policies using data sources instead of hardcoded IDs
Full Changelog: v1.3.0...v2.0.0