mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-22 23:00:53 -05:00
Signed-off-by: Janos <86970079+janosdebugs@users.noreply.github.com> Signed-off-by: James Humphries <James@james-humphries.co.uk> Co-authored-by: James Humphries <James@james-humphries.co.uk> Co-authored-by: Siddhartha Sonker <34684647+siddharthasonker@users.noreply.github.com>
26 lines
618 B
HCL
26 lines
618 B
HCL
terraform {
|
|
encryption {
|
|
## Step 1: Add the desired key provider:
|
|
key_provider "pbkdf2" "mykey" {
|
|
# Change this to be at least 16 characters long:
|
|
passphrase = "changeme!"
|
|
}
|
|
## Step 2: Set up your encryption method:
|
|
method "aes_gcm" "new_method" {
|
|
keys = key_provider.pbkdf2.mykey
|
|
}
|
|
|
|
state {
|
|
## Step 3: Link the desired encryption method:
|
|
method = method.aes_gcm.new_method
|
|
|
|
## Step 4: Run "tofu apply".
|
|
|
|
## Step 5: Consider adding the "enforced" option:
|
|
# enforced = true
|
|
}
|
|
|
|
## Step 6: Repeat steps 3-5 for plan{} if needed.
|
|
}
|
|
}
|