Closed not22day closed 7 months ago
The following code worked for me 1) how to carry over user/pw from secretsmanager_user into provider 2) skip_child_token = true required to make it work 3) mount is the instance id
provider "vault" { address = "https://prod.sm.eu01.stackit.cloud" skip_child_token = true auth_login_userpass { username = stackit_secretsmanager_user.example.username password = stackit_secretsmanager_user.example.password } } resource "vault_kv_secret_v2" "example" { mount = stackit_secretsmanager_instance.example.instance_id name = "my-secret" cas = 1 delete_all_versions = true data_json = jsonencode( { zip = "zap", foo = "bar" } ) }
Documentation for this case is available in the Terraform Registry
The following code worked for me 1) how to carry over user/pw from secretsmanager_user into provider 2) skip_child_token = true required to make it work 3) mount is the instance id