Resource Expiration
Fix Inventory calculates the expiration time of a resource based on its expiration tag and stores the result as the value of the metadata.expires
property.
Cleanup can be performed using the cleanup-expired
infrastructure app.
Supported Expiration Tags​
A resource's expiration time can be defined either with an ISO 8601 timestamp or time delta:
Tag Name | Description | Example |
---|---|---|
fix:expires | ISO 8601 timestamp | 2022-09-21T10:40:11+00:00 |
fix:expiration or expiration | Time delta from resource creation time | 24h |
Time deltas can be specified in the following units:
Unit | Abbreviations |
---|---|
years | year , yr , y |
months | month , mo , M |
days | day , d |
weeks | week , w |
hours | hour , h |
minutes | minute , min , m |
seconds | second , s |
Spaces within time delta strings are optional (e.g., 7d4h
and 7 days 4 hours
are equivalent).