mirror of
https://github.com/hanzokms/terraform-provider.git
synced 2026-10-30 20:29:45 +00:00
33 lines
712 B
Terraform
33 lines
712 B
Terraform
terraform {
|
|
required_providers {
|
|
kms = {
|
|
# version = <latest version>
|
|
source = "hanzokms/kms"
|
|
}
|
|
}
|
|
}
|
|
|
|
provider "kms" {
|
|
host = "https://kms.hanzo.ai" # Only required if using self hosted instance of Hanzo KMS, default is https://kms.hanzo.ai
|
|
auth = {
|
|
universal = {
|
|
client_id = "<machine-identity-client-id>"
|
|
client_secret = "<machine-identity-client-secret>"
|
|
}
|
|
}
|
|
}
|
|
|
|
data "kms_projects" "test-project" {
|
|
slug = "<project-slug>"
|
|
}
|
|
|
|
// Get the value of the "dev" environment
|
|
output "dev-environment" {
|
|
value = data.kms_projects.test-project.environments["dev"]
|
|
}
|
|
|
|
// Get the entire project
|
|
output "entire-project" {
|
|
value = data.kms_projects.test-project
|
|
}
|