2023-12-11 09:55:44 -05:00
|
|
|
data "constellation_attestation" "foo" {} # Fill accordingly for the CSP and attestation variant
|
|
|
|
|
|
|
|
data "constellation_image" "bar" {} # Fill accordingly for the CSP
|
|
|
|
|
2023-12-18 04:15:54 -05:00
|
|
|
resource "random_bytes" "master_secret" {
|
|
|
|
length = 32
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "random_bytes" "master_secret_salt" {
|
|
|
|
length = 32
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "random_bytes" "measurement_salt" {
|
|
|
|
length = 32
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "constellation_cluster" "azure_example" {
|
|
|
|
csp = "azure"
|
2023-12-11 09:55:44 -05:00
|
|
|
name = "constell"
|
2023-12-18 04:15:54 -05:00
|
|
|
uid = "..."
|
2023-12-11 09:55:44 -05:00
|
|
|
image = data.constellation_image.bar.image
|
|
|
|
attestation = data.constellation_attestation.foo.attestation
|
2023-12-18 04:15:54 -05:00
|
|
|
init_secret = "..."
|
|
|
|
master_secret = random_bytes.master_secret.hex
|
|
|
|
master_secret_salt = random_bytes.master_secret_salt.hex
|
|
|
|
measurement_salt = random_bytes.measurement_salt.hex
|
2023-12-11 09:55:44 -05:00
|
|
|
out_of_cluster_endpoint = "123.123.123.123"
|
2024-01-08 07:05:01 -05:00
|
|
|
kubernetes_version = "v1.2.3"
|
2023-12-18 04:15:54 -05:00
|
|
|
azure = {
|
|
|
|
tenant_id = "..."
|
|
|
|
subscription_id = "..."
|
|
|
|
uami_client_id = "..."
|
|
|
|
uami_resource_id = "..."
|
|
|
|
location = "..."
|
|
|
|
resource_group = "..."
|
|
|
|
load_balancer_name = "..."
|
|
|
|
network_security_group_name = "..."
|
|
|
|
}
|
2023-12-11 09:55:44 -05:00
|
|
|
network_config = {
|
|
|
|
ip_cidr_node = "192.168.176.0/20"
|
|
|
|
ip_cidr_service = "10.96.0.0/12"
|
|
|
|
}
|
|
|
|
}
|