Terraform SOPS provider

From wikieduonline
Jump to navigation Jump to search


provider "sops" {}

data "sops_file" "demo-secret" {
  source_file = "demo-secret.enc.json"
}

output "db-password" {
  # Access the password variable that is under db via the terraform map of data
  value = data.sops_file.demo-secret.data["db.password"]
}

See also[edit]

Advertising: