cndi E1008 - TERRAFORM_STATE_PASSPHRASE environment variable is not set
#858
johnstonmatt
announced in
Error Message Discussion
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
description
The
cndiCLI exits with error code1008when it doesn't find a value for theTERRAFORM_STATE_PASSPHRASEenvironment variable.CNDI stores your terraform state file in the otherwise empty
_statebranch of your repository, where it is is encrypted at rest using the AES algorithm, taking your terraform state JSON, and yourTERRAFORM_STATE_PASSPHRASEas input to the encryption operation.It's this secret value that CNDI is unable to find.
resolution tips
This issue can be challenging to remedy if you can't recover the original key passphrase used to seal your state.
You should first ensure the
TERRAFORM_STATE_PASSPHRASEenv var is present in the environment where you are running yourcndicommand. It should be available wherever you ran the command, from your local machine or from GitHub Actions.Beta Was this translation helpful? Give feedback.
All reactions