AWS Builder AMI deprecate_at can we calculate a future date somehow?

The AMI optional flag deprecate_at in the EBS builder seems like a great way to clean up old images. I’m trying to figure out if there’s a way to set the deprecate_at to be isotime + 365 days. I know I can’t do it in the user variables json, maybe in the buildspec steps?

You can use the timeadd() function to do this. For example, you could do something like timeadd(timestamp(), “10m”)