* feat: add local directory management --------- Signed-off-by: matttrach <matt.trachier@suse.com> |
||
|---|---|---|
| .. | ||
| README.md | ||
| backend.tf | ||
| main.tf | ||
| outputs.tf | ||
| variables.tf | ||
| versions.tf | ||
README.md
Local Directory Use Case
This is a more advanced use case for adding a directory.
The goal of this use case is to retrieve the files in the directory at a specific point in time. We don't want the live data because we add files that we don't want included in the output.
These are the steps:
- we generate a directory
- add files to it
- get the directory data
- save the directory data to a file in the directory
- snapshot the directory data
- output the snapshot
The resulting output will always be the files we first placed in the directory excluding the directory data file.
On the initial run the directory data will match the snapshot, but on subsequent runs the refresh phase will update the directory data to include the directory data file. Our snapshot data will always exclude this file though, since it only updates when we alter the update trigger.