Artifact Life Cycle

Over time, your distributions will pile up and start driving cost.

Attini, therefore, supports life cycle policies for your deployed distributions. The life cycle policies are configured using 2 configurations in attini-setup.

  1. RetainDistributionDays
  2. RetainDistributionVersions

This means that you will always be able to roll back X days and Y versions.

When we clean up old deployments, everything with the key prefix /${environment}/${distribution-name}/${distribution-id}/ in the Attini artifact store will be deleted.

The clean-up will be done by the Init deploy so if no new deployments are done, the life cycle management will never be triggered.

Example

If you configure your deployments for 10 days and 5 deployments, all the files associated with an older distribution AND have more than 5 new deployments will be permanently deleted.

If you deploy 20 times within 1 day, you will have 20 versions of your distribution in your environment because all deployments are newer than 10 days. But if you wait for 10 days and do 1 more deployment. Then the 15 oldest versions will be deleted.

If you deploy once a month, the distributions will be saved for 5 months.