Skip to content

Instantly share code, notes, and snippets.

@carljavier
Created September 30, 2022 05:24
Show Gist options
  • Save carljavier/edf083f97e5573beaac4aa8842de1241 to your computer and use it in GitHub Desktop.
Save carljavier/edf083f97e5573beaac4aa8842de1241 to your computer and use it in GitHub Desktop.
tf_vault Test
data "vault_generic_secret" "awsregion" {
path = "secret/aws"
}
output "awsregion" {
value = data.vault_generic_secret.awsregion.data_json
sensitive = true
}
provider "aws" {
region = data.vault_generic_secret.awsregion.data["region"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment