Closed sebastian-sommerfeld-io closed 1 year ago
Store terraform state in a separate private repository
configs-persistent-data
configs
src/main/github/assets/help.adoc
mkdir -p /tmp/repos
/tmp/repos/configs-persistent-data
tfstate
rm -rf /tmp/repos
Store terraform state in a separate private repository
configs-persistent-data
(private) with directory structure matchingconfigs
repo but without any docsconfigs
repo (github setup)src/main/github/assets/help.adoc
with new options -> cleanupmkdir -p /tmp/repos
/tmp/repos/configs-persistent-data
)tfstate
to correct locationtfstate
back to/tmp/repos/configs-persistent-data
configs-persistent-data
(only state file)rm -rf /tmp/repos
... run always (same as google chat)Links