User data is limited to 16 KB.
Cron is a time-based job scheduler in linux platform and It is used to automatically run scripts or commands at specified times and intervals.
One job is created, It constantly checks a list of scheduled tasks (cron jobs) and When the system time matches the time defined in a job, cron executes it automatically.
* * * * * command_to_run
│ │ │ │ │
│ │ │ │ └── Day of the week (0 - 7) (Sunday is 0 or 7)
│ │ │ └───── Month (1 - 12)
│ │ └──────── Day of the month (1 - 31)
│ └─────────── Hour (0 - 23)
└────────────── Minute (0 - 59)
A retention rule tells Lifecycle Manager how many backups to retain, or for how long, based on your policy.
1. Amazon EBS Snapshots
2. Amazon Machine Images (AMIs)
3. Cross account copy
It's a policy that automates the creation, retention, and deletion of EBS snapshots and EBS-backed AMIs.