Moved Date
Terraform
1moved {
2 to = ""
3 from = ""
4}
1# @moveddate(start="01-01-1970")
2moved {
3 to = ""
4 from = ""
5}
1# @moveddate(start="01-01-1970", expire="19-01-2038")
2import {
3 to = ""
4 from = ""
5}
you can also overwrite the expire date with your own duration like:
`bash
tfutility moveddate --expire-after 60 /workspace
`
The –expire-after value is in Days.
If –allow-failure is not set the Application wil exit with exitcode 1 and without –silent it logs all expired moved blocks
usage: tfutility moveddate [-h] [--expire-after EXPIRE_AFTER] [-s]
[--allow-failure]
paths [paths ...]
Positional Arguments
- paths
Path to one or more TF-Files. Its also Possible to set a folder. It searches only *.tf files
Named Arguments
- --expire-after
Returns all blocks that are older than the specified time period. The time span in days
- -s, --silent
Prevent any log output
Default:
False
- --allow-failure
If this flag was set, the module logs only all occurences but does not exit with code 1
Default:
False