diff --git a/docs/_docs/04_reference/config-blocks-and-attributes.md b/docs/_docs/04_reference/config-blocks-and-attributes.md index db7ca52909..9542c699da 100644 --- a/docs/_docs/04_reference/config-blocks-and-attributes.md +++ b/docs/_docs/04_reference/config-blocks-and-attributes.md @@ -581,7 +581,7 @@ remote_state { encryption = { key_provider = "pbkdf2" - passphrase = "SUPERSECRETPASSPHRASE" + passphrase = get_env("PBKDF2_PASSPHRASE") } } ``` diff --git a/test/integration_tofu_state_encryption_test.go b/test/integration_tofu_state_encryption_test.go index bf68156832..e6c9131dac 100644 --- a/test/integration_tofu_state_encryption_test.go +++ b/test/integration_tofu_state_encryption_test.go @@ -22,9 +22,9 @@ const ( testFixtureTofuStateEncryptionGCPKMS = "fixtures/tofu-state-encryption/gcp-kms" testFixtureTofuStateEncryptionAWSKMS = "fixtures/tofu-state-encryption/aws-kms" gcpKMSKeyID = "projects/terragrunt-test/locations/global/keyRings/terragrunt-test/cryptoKeys/terragrunt-test-key" - awsKMSKeyID = "arn:aws:kms:us-west-2:123456789012:key/12345678-1234-1234-1234-123456789012" + awsKMSKeyID = "arn:aws:kms:us-east-1:087285199408:key/bd372994-d969-464a-a261-6cc850c58a92" stateFile = "terraform.tfstate" - awsKMSKeyRegion = "us-west-2" + awsKMSKeyRegion = "us-east-1" ) func TestTofuStateEncryptionPBKDF2(t *testing.T) { @@ -39,6 +39,7 @@ func TestTofuStateEncryptionPBKDF2(t *testing.T) { } func TestTofuStateEncryptionGCPKMS(t *testing.T) { + t.Skip("Skipping test as the GCP KMS key is not available. You have to setup your own GCP KMS key to run this test.") t.Parallel() tmpEnvPath := helpers.CopyEnvironment(t, testFixtureTofuStateEncryptionGCPKMS)