Update environment-variables.mdx (#1885)

Signed-off-by: Jordan Pitlor <jpitlor@gmail.com>
Signed-off-by: Jordan Pitlor <jordan@pitlor.dev>
This commit is contained in:
Jordan Pitlor
2024-08-07 04:25:44 -04:00
committed by GitHub
parent 6f01428333
commit 0e6d14b301

View File

@@ -196,3 +196,9 @@ The `TF_ENCRYPTION` environment variable is an alternate method of specifying th
# Add/Override encryption key_provider.static.mykp
export TF_ENCRYPTION='key_provider "static" "mykp" { key = "6f6f706830656f67686f6834616872756f3751756165686565796f6f72653169" }'
```
:::warning
If the key (or similar) has non-alphanumeric characters in it, beware that your shell may not interpret them literally. Special characters are shell dependent, but some common examples are dollar signs for variable interpolation or backslashes for character escaping.
Make sure your secret doesn't get changed by your shell without you realizing. This is also shell dependent, but common ways of avoiding this are using single quotes or escaping special characters with a backslash.
:::