Skip to content

Commit 53caa86

Browse files
authored
docs: clarify for Azure TDX with Terraform provider (#3449)
1 parent 1ed1a62 commit 53caa86

File tree

3 files changed

+33
-11
lines changed

3 files changed

+33
-11
lines changed

docs/docs/workflows/terraform-provider.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ This example shows how to set up a Constellation cluster with the reference IAM
3434
Optionally, you can prefix the `terraform apply` command with `TF_LOG=INFO` to collect [Terraform logs](https://developer.hashicorp.com/terraform/internals/debugging) while applying the configuration. This may provide helpful output in debugging scenarios.
3535
</TabItem>
3636
<TabItem value="azure" label="Azure">
37-
When creating a cluster on Azure, you need to manually patch the policy of the MAA provider before creating the Constellation cluster, as this feature isn't available in Azure's Terraform provider yet. The Constellation CLI provides a utility for patching, but you
38-
can also do it manually.
37+
38+
:::info
39+
On SEV-SNP, you need to manually patch the policy of the MAA provider before creating the Constellation cluster, as this feature isn't available in Azure's Terraform provider yet. The Constellation CLI provides a utility for patching, but you can also do it manually.
3940

4041
```bash
4142
terraform init
@@ -45,9 +46,7 @@ This example shows how to set up a Constellation cluster with the reference IAM
4546
terraform apply -target constellation_cluster.azure_example # adjust resource path if not using the example configuration
4647
```
4748

48-
Optionally, you can prefix the `terraform apply` command with `TF_LOG=INFO` to collect [Terraform logs](https://developer.hashicorp.com/terraform/internals/debugging) while applying the configuration. This may provide helpful output in debugging scenarios.
49-
50-
Use the following policy if manually performing the patch.
49+
Use the following policy if manually performing the patch.
5150

5251
```
5352
version= 1.0;
@@ -67,7 +66,19 @@ This example shows how to set up a Constellation cluster with the reference IAM
6766
};
6867
```
6968

69+
:::
70+
71+
Initialize the providers and apply the configuration.
72+
73+
```bash
74+
terraform init
75+
terraform apply
76+
```
77+
78+
Optionally, you can prefix the `terraform apply` command with `TF_LOG=INFO` to collect [Terraform logs](https://developer.hashicorp.com/terraform/internals/debugging) while applying the configuration. This may provide helpful output in debugging scenarios.
79+
7080
</TabItem>
81+
7182
<TabItem value="gcp" label="GCP">
7283
Initialize the providers and apply the configuration.
7384

docs/versioned_docs/version-2.19/workflows/terraform-provider.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ This example shows how to set up a Constellation cluster with the reference IAM
3434
Optionally, you can prefix the `terraform apply` command with `TF_LOG=INFO` to collect [Terraform logs](https://developer.hashicorp.com/terraform/internals/debugging) while applying the configuration. This may provide helpful output in debugging scenarios.
3535
</TabItem>
3636
<TabItem value="azure" label="Azure">
37-
When creating a cluster on Azure, you need to manually patch the policy of the MAA provider before creating the Constellation cluster, as this feature isn't available in Azure's Terraform provider yet. The Constellation CLI provides a utility for patching, but you
38-
can also do it manually.
37+
38+
:::info
39+
On SEV-SNP, you need to manually patch the policy of the MAA provider before creating the Constellation cluster, as this feature isn't available in Azure's Terraform provider yet. The Constellation CLI provides a utility for patching, but you can also do it manually.
3940

4041
```bash
4142
terraform init
@@ -45,9 +46,7 @@ This example shows how to set up a Constellation cluster with the reference IAM
4546
terraform apply -target constellation_cluster.azure_example # adjust resource path if not using the example configuration
4647
```
4748

48-
Optionally, you can prefix the `terraform apply` command with `TF_LOG=INFO` to collect [Terraform logs](https://developer.hashicorp.com/terraform/internals/debugging) while applying the configuration. This may provide helpful output in debugging scenarios.
49-
50-
Use the following policy if manually performing the patch.
49+
Use the following policy if manually performing the patch.
5150

5251
```
5352
version= 1.0;
@@ -67,7 +66,19 @@ This example shows how to set up a Constellation cluster with the reference IAM
6766
};
6867
```
6968

69+
:::
70+
71+
Initialize the providers and apply the configuration.
72+
73+
```bash
74+
terraform init
75+
terraform apply
76+
```
77+
78+
Optionally, you can prefix the `terraform apply` command with `TF_LOG=INFO` to collect [Terraform logs](https://developer.hashicorp.com/terraform/internals/debugging) while applying the configuration. This may provide helpful output in debugging scenarios.
79+
7080
</TabItem>
81+
7182
<TabItem value="gcp" label="GCP">
7283
Initialize the providers and apply the configuration.
7384

terraform-provider-constellation/examples/full/azure/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ locals {
2121
location = "northeurope"
2222
control_plane_count = 3
2323
worker_count = 2
24-
instance_type = "Standard_DC4as_v5"
24+
instance_type = "Standard_DC4as_v5" // Adjust if using TDX
2525
subscription_id = "00000000-0000-0000-0000-000000000000"
2626

2727
master_secret = random_bytes.master_secret.hex

0 commit comments

Comments
 (0)