From 0658b0994f1d21f4426c9625b8681ec3d4192ece Mon Sep 17 00:00:00 2001 From: Murad Biashimov Date: Fri, 16 Feb 2024 13:49:58 +0100 Subject: [PATCH] fix: termination_protection diff `true -> null` (#1598) --- CHANGELOG.md | 1 + internal/schemautil/service.go | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8983adceb..a9965a8bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ nav_order: 1 - Use `TypeSet` for `ip_filter`, `ip_filter_string` fields - Fix `aiven_organization_user_group` resource - `description` field is required - Use golang 1.22 +- Output explicitly `termination_protection = true -> false` when service property is removed ## [4.13.3] - 2024-01-29 diff --git a/internal/schemautil/service.go b/internal/schemautil/service.go index 6e5337864..4ce618aa8 100644 --- a/internal/schemautil/service.go +++ b/internal/schemautil/service.go @@ -122,6 +122,7 @@ func ServiceCommonSchema() map[string]*schema.Schema { "termination_protection": { Type: schema.TypeBool, Optional: true, + Default: false, Description: "Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent unintentional service deletion. This does not shield against deleting databases or topics but for services with backups much of the content can at least be restored from backup in case accidental deletion is done.", }, "disk_space": {