Elastic Beanstalk lifecycle policies allow you to:
- Retain a specific number of recent application versions (e.g., keeping only the 100 most recent versions). When a new version is added, the oldest version is automatically deleted.
- Protect critical versions by marking them as deletion protected.
- Remove outdated versions through a time-based retention policy (for example, deleting any version older than 90 days).
