Skip to main content
Version: 3.9.0

How to Find Expired Resources

A resource can be tagged with an expiration tag that instructs Resoto to clean it up at a defined time. This can serve as a safety net for when a CI job fails or the IaC tool aborts halfway through its run, or even as the primary means of managing resource lifecycles.

Resoto calculates the expiration time of a resource based on its expiration tag and stores the result as the value of the metadata.expires property.

Prerequisites​

This guide assumes that you have already installed and configured Resoto to collect your cloud resources.

Directions​

Execute the following search in Resoto Shell to list all expired resources:

> search /metadata.expires < "@utc@"
note

This search finds all resources that have an expires property that is less than the current time. Resoto automatically expands @utc@ to the current date and time. See help placeholders for more information on placeholder strings.

Further Reading​

Contact Us

Have feedback or need help? Don’t be shy—we’d love to hear from you!

 

 

 

Some Engineering Inc.