data skeleton for cluster resource

This commit is contained in:
Adrian Stobbe 2023-12-01 12:34:31 +01:00
parent 17aecaaf5f
commit e6f4be73bb
20 changed files with 1083 additions and 431 deletions

View file

@ -40,8 +40,7 @@ See the [full list of CSPs](https://docs.edgeless.systems/constellation/overview
### Read-Only
- `attestation` (Attributes) Only relevant for SEV-SNP. (see [below for nested schema](#nestedatt--attestation))
- `id` (String) The ID of the data source
- `attestation` (Attributes) Attestation comprises the measurements and SEV-SNP specific parameters. (see [below for nested schema](#nestedatt--attestation))
- `measurements` (Attributes Map) (see [below for nested schema](#nestedatt--measurements))
<a id="nestedatt--attestation"></a>
@ -52,9 +51,15 @@ Read-Only:
- `amd_root_key` (String)
- `azure_firmware_signer_config` (Attributes) (see [below for nested schema](#nestedatt--attestation--azure_firmware_signer_config))
- `bootloader_version` (Number)
- `measurements` (Attributes Map) (see [below for nested schema](#nestedatt--attestation--measurements))
- `microcode_version` (Number)
- `snp_version` (Number)
- `tee_version` (Number)
- `variant` (String) Attestation variant the image should work with. Can be one of:
* `aws-sev-snp`
* `aws-nitro-tpm`
* `azure-sev-snp`
* `gcp-sev-es`
<a id="nestedatt--attestation--azure_firmware_signer_config"></a>
### Nested Schema for `attestation.azure_firmware_signer_config`
@ -66,6 +71,15 @@ Read-Only:
- `maa_url` (String)
<a id="nestedatt--attestation--measurements"></a>
### Nested Schema for `attestation.measurements`
Read-Only:
- `expected` (String)
- `warn_only` (Boolean)
<a id="nestedatt--measurements"></a>
### Nested Schema for `measurements`

View file

@ -42,5 +42,4 @@ The Constellation OS image must be [replicated to the region](https://docs.edgel
### Read-Only
- `id` (String) The ID of this resource.
- `reference` (String) CSP-specific reference to the image.

View file

@ -0,0 +1,89 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "constellation_cluster Resource - constellation"
subcategory: ""
description: |-
Resource for a Constellation cluster.
---
# constellation_cluster (Resource)
Resource for a Constellation cluster.
<!-- schema generated by tfplugindocs -->
## Schema
### Required
- `attestation` (Attributes) Attestation comprises the measurements and SEV-SNP specific parameters. (see [below for nested schema](#nestedatt--attestation))
- `init_secret` (String) The init secret to use for the cluster.
- `master_secret` (String) The master secret to use for the cluster.
- `uid` (String) The UID of the cluster.
### Optional
- `constellation_microservices_version` (String) The Constellation microservices version to use for the cluster.
- `debug` (Boolean) ~> **Warning:** Do not enable Debug mode in production environments.
Enable debug mode and allow the use of debug images.
- `extra_microservices` (Attributes) Extra microservice settings. (see [below for nested schema](#nestedatt--extra_microservices))
- `image` (String) The Constellation OS image to use in the CSP specific reference format. Use the `constellation_image` data source to find the correct image for your CSP.
- `init_endpoint` (String) The endpoint to use for cluster initialization. This is the endpoint of the node running the bootstrapper.
- `kubernetes_api_endpoint` (String) The endpoint to use for the Kubernetes API.
- `kubernetes_version` (String) The Kubernetes version to use for the cluster.
- `name` (String) Name used in the cluster's named resources / cluster name.
### Read-Only
- `cluster_id` (String) The cluster ID of the cluster.
- `kubeconfig` (String) The kubeconfig of the cluster.
- `owner_id` (String) The owner ID of the cluster.
<a id="nestedatt--attestation"></a>
### Nested Schema for `attestation`
Required:
- `amd_root_key` (String)
- `bootloader_version` (Number)
- `measurements` (Attributes Map) (see [below for nested schema](#nestedatt--attestation--measurements))
- `microcode_version` (Number)
- `snp_version` (Number)
- `tee_version` (Number)
- `variant` (String) Attestation variant the image should work with. Can be one of:
* `aws-sev-snp`
* `aws-nitro-tpm`
* `azure-sev-snp`
* `gcp-sev-es`
Optional:
- `azure_firmware_signer_config` (Attributes) (see [below for nested schema](#nestedatt--attestation--azure_firmware_signer_config))
<a id="nestedatt--attestation--measurements"></a>
### Nested Schema for `attestation.measurements`
Required:
- `expected` (String)
- `warn_only` (Boolean)
<a id="nestedatt--attestation--azure_firmware_signer_config"></a>
### Nested Schema for `attestation.azure_firmware_signer_config`
Optional:
- `accepted_key_digests` (List of String)
- `enforcement_policy` (String)
- `maa_url` (String)
<a id="nestedatt--extra_microservices"></a>
### Nested Schema for `extra_microservices`
Optional:
- `csi_driver` (Boolean) Enable the CSI driver microservice.

View file

@ -1,25 +0,0 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "constellation_example Resource - constellation"
subcategory: ""
description: |-
Example resource
---
# constellation_example (Resource)
Example resource
<!-- schema generated by tfplugindocs -->
## Schema
### Optional
- `configurable_attribute` (String) Example configurable attribute
- `defaulted` (String) Example configurable attribute with default value
### Read-Only
- `id` (String) Example identifier