List resources older than a threshold.
Ignores resources tagged with: shiftstack-prune=keep
.
Dry run:
export OS_CLOUD=<clouds.yaml entry>
./prune
Actual run:
export OS_CLOUD=<clouds.yaml entry>
./prune --no-dry-run
Configure the resoruce TTL with --resource-ttl=<duration>
where <duration>
is expressed as a Go duration. For example:
export OS_CLOUD=<clouds.yaml entry>
./prune --no-dry-run --resource-ttl=5h