From 005a21be7af7569d24802e5a467e6652f37c8f7d Mon Sep 17 00:00:00 2001 From: Moritz Sanft <58110325+msanft@users.noreply.github.com> Date: Mon, 8 Jan 2024 13:15:34 +0100 Subject: [PATCH] terraform-provider: allow GCP MPIs --- .../internal/provider/image_data_source.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/terraform-provider-constellation/internal/provider/image_data_source.go b/terraform-provider-constellation/internal/provider/image_data_source.go index ba279e6b4e..afd1acd63d 100644 --- a/terraform-provider-constellation/internal/provider/image_data_source.go +++ b/terraform-provider-constellation/internal/provider/image_data_source.go @@ -128,11 +128,11 @@ func (d *ImageDataSource) ValidateConfig(ctx context.Context, req datasource.Val ) } - // Marketplace image is only supported for Azure - if !data.CSP.Equal(types.StringValue("azure")) && !data.MarketplaceImage.IsNull() { + // Marketplace image is only supported for Azure and GCP + if data.CSP.Equal(types.StringValue("aws")) && !data.MarketplaceImage.IsNull() { resp.Diagnostics.AddAttributeWarning( path.Root("marketplace_image"), - "Marketplace images are currently only supported on Azure", "When another CSP than Azure is used, setting 'marketplace_image' has no effect.", + "Marketplace images are currently only supported on Azure and GCP", "When another CSP than Azure or GCP is used, setting 'marketplace_image' has no effect.", ) }