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 is configured using 2 configurations in attini-setup.

  1. RetainDistributionDays

  2. RetainDistributionVersions

This means that you will always be able to rollback 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 100 times within 10 days, you will have 100 versions of your distribution in your environment, however on the 11th day 95 versions will be deleted.

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