data "credhub_password" "my_data" {
name = "/concourse/sbx/password"
// or you can use credential id:
// cred_id = "mydata-id"
}
resource "kubernetes_secret" "example" {
metadata {
name = "basic-auth"
}
data = {
username = "admin"
password = data.credhub_password.my_data.name
}
}
When I look up the secret created the data for password is blank. Terraform is not able to pick up the password I have set in the credhub server. Infact the key for passowrd is not in the secret at all
Trying to use terraform credhub provider. I have below for my provider.tf
next is my main.tf
When I look up the secret created the data for password is blank. Terraform is not able to pick up the password I have set in the credhub server. Infact the key for passowrd is not in the secret at all