From 8fb087d3642b7f91efd7d6d9a34593790d578bf2 Mon Sep 17 00:00:00 2001 From: Moritz Sanft <58110325+msanft@users.noreply.github.com> Date: Mon, 15 Apr 2024 13:38:45 +0200 Subject: [PATCH] terraform-provider: enable fetching of attestation config values for GCP SEV-SNP --- .../internal/provider/attestation_data_source.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/terraform-provider-constellation/internal/provider/attestation_data_source.go b/terraform-provider-constellation/internal/provider/attestation_data_source.go index 56815ae223..abf2921b69 100644 --- a/terraform-provider-constellation/internal/provider/attestation_data_source.go +++ b/terraform-provider-constellation/internal/provider/attestation_data_source.go @@ -163,7 +163,9 @@ func (d *AttestationDataSource) Read(ctx context.Context, req datasource.ReadReq insecureFetch := data.Insecure.ValueBool() snpVersions := attestationconfigapi.SEVSNPVersionAPI{} - if attestationVariant.Equal(variant.AzureSEVSNP{}) || attestationVariant.Equal(variant.AWSSEVSNP{}) { + if attestationVariant.Equal(variant.AzureSEVSNP{}) || + attestationVariant.Equal(variant.AWSSEVSNP{}) || + attestationVariant.Equal(variant.GCPSEVSNP{}) { snpVersions, err = d.fetcher.FetchSEVSNPVersionLatest(ctx, attestationVariant) if err != nil { resp.Diagnostics.AddError("Fetching SNP Version numbers", err.Error())