Skip to content

Instantly share code, notes, and snippets.

@pablovilas
Last active October 14, 2024 14:21
Show Gist options
  • Save pablovilas/6a29c9eb10704cbe368062767b5f03f1 to your computer and use it in GitHub Desktop.
Save pablovilas/6a29c9eb10704cbe368062767b5f03f1 to your computer and use it in GitHub Desktop.
resource "nullplatform_provider_config" "azure" {
provider = nullplatform
account = "poc-main"
type = "azure-configuration"
dimensions = {}
attributes = jsonencode({
"authentication": {
"client_id": "8e2f9b12-3a67-4820-91a7-abc123456789",
"tenant_id": "d32bf76a-4e1f-49a9-a1b7-123456789abc",
"client_secret": "t5O9X~1gJ8pQ3zDcTfP7Hx9v-Y8w_VNOp7eDuZx1",
"subscription_id": "cd34567f-2c89-456d-bf01-67890abcdefg"
},
"networking": {
"domain_name": "poc.nullapps.io",
"public_dns_zone_name": "poc.nullapps.io",
"public_dns_zone_resource_group_name": "rg-poc-main",
},
}
)
}
resource "nullplatform_provider_config" "aks" {
provider = nullplatform
account = "poc-main"
type = "aks-configuration"
dimensions = {}
attributes = jsonencode({
"cluster": {
"id": "main-cluster",
"namespace": "nullplatform",
"resource_group": "rg-poc-main",
},
"gateway": {
"namespace": "gateways",
"public_name": "public-gateway",
},
"networking": {
"public_balancer_ip": "172.179.65.237",
},
"web_pool_provider": "AZURE:WEB_POOL:AKS"
})
depends_on = [
nullplatform_provider_config.azure
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment