Created
September 30, 2022 05:24
-
-
Save carljavier/edf083f97e5573beaac4aa8842de1241 to your computer and use it in GitHub Desktop.
tf_vault Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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