You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Address critical code review findings and enhance validation
This commit resolves all critical bugs identified in PR review:
Critical Fixes:
- Remove invalid cold_storage_after = 0 from cost_optimized_backup example
- Remove unsupported notifications argument from cross_region_backup example
- Fix all examples using cold_storage_after = 0 across multiple files
Performance Enhancements:
- Add resource timeouts (10min) to backup vault and plan resources
- Prevent hanging deployments with proper timeout configuration
Validation Improvements:
- Update cold_storage_after validation to require minimum 1 day (AWS requirement)
- Enhance error messages with clear guidance on disabling cold storage
- Fix variable validations and defaults for consistent behavior
Documentation Updates:
- Add proper cold storage configuration examples in README
- Clarify minimum requirements and disable instructions
All examples now comply with AWS Backup requirements and will deploy successfully.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
error_message="Lifecycle validation failed: cold_storage_after must be ≤ delete_after, delete_after ≥ 1 day. If cold_storage_after is specified and > 0, it must be ≥ 30 days (AWS requirement). Use 0 to disable cold storage."
264
+
error_message="Lifecycle validation failed: cold_storage_after must be ≤ delete_after, delete_after ≥ 1 day. If cold_storage_after is specified, it must be ≥ 1 day (AWS requirement). To disable cold storage, omit the cold_storage_after parameter entirely."
error_message="Lifecycle validation failed: cold_storage_after must be ≤ delete_after, delete_after ≥ 1 day. If cold_storage_after is specified and > 0, it must be ≥ 30 days (AWS requirement). Use 0 to disable cold storage."
490
+
error_message="Lifecycle validation failed: cold_storage_after must be ≤ delete_after, delete_after ≥ 1 day. If cold_storage_after is specified, it must be ≥ 1 day (AWS requirement). To disable cold storage, omit the cold_storage_after parameter entirely."
description="Default number of days after creation that a recovery point is moved to cold storage. Used when cold_storage_after is not specified in lifecycle configuration."
error_message="The default_lifecycle_cold_storage_after_days must be at least 1 day (AWS minimum requirement). To disable cold storage by default, set to null."
0 commit comments