From 1283777dfe3c9244cbe0627f11a36eea3f575ae3 Mon Sep 17 00:00:00 2001 From: David Szabo Date: Mon, 16 Dec 2024 15:14:07 +0100 Subject: [PATCH] CDPCP-13575 Environments should be CCM enabled by default --- resources/environments/schema_aws_environment.go | 1 + resources/environments/schema_azure_environment.go | 1 + resources/environments/schema_gcp_environment.go | 1 + 3 files changed, 3 insertions(+) diff --git a/resources/environments/schema_aws_environment.go b/resources/environments/schema_aws_environment.go index 2dfe7813..ce3fd181 100644 --- a/resources/environments/schema_aws_environment.go +++ b/resources/environments/schema_aws_environment.go @@ -117,6 +117,7 @@ var AwsEnvironmentSchema = schema.Schema{ "enable_tunnel": schema.BoolAttribute{ Optional: true, Computed: true, + Default: booldefault.StaticBool(true), PlanModifiers: []planmodifier.Bool{ boolplanmodifier.UseStateForUnknown(), }, diff --git a/resources/environments/schema_azure_environment.go b/resources/environments/schema_azure_environment.go index b48835c5..09af4a7c 100644 --- a/resources/environments/schema_azure_environment.go +++ b/resources/environments/schema_azure_environment.go @@ -90,6 +90,7 @@ var AzureEnvironmentSchema = schema.Schema{ "enable_tunnel": schema.BoolAttribute{ Optional: true, Computed: true, + Default: booldefault.StaticBool(true), PlanModifiers: []planmodifier.Bool{ boolplanmodifier.UseStateForUnknown(), }, diff --git a/resources/environments/schema_gcp_environment.go b/resources/environments/schema_gcp_environment.go index 9d3b47da..20bb93db 100644 --- a/resources/environments/schema_gcp_environment.go +++ b/resources/environments/schema_gcp_environment.go @@ -156,6 +156,7 @@ func (r *gcpEnvironmentResource) Schema(_ context.Context, _ resource.SchemaRequ MarkdownDescription: "Whether to enable SSH tunneling for the environment.", Optional: true, Computed: true, + Default: booldefault.StaticBool(true), PlanModifiers: []planmodifier.Bool{ boolplanmodifier.UseStateForUnknown(), },