diff --git a/charts/terraform-cloud/CHANGELOG.md b/charts/terraform-cloud/CHANGELOG.md index e34d11c8..2c16dfdf 100644 --- a/charts/terraform-cloud/CHANGELOG.md +++ b/charts/terraform-cloud/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v1.12.0] - 2024-07-29 +### Added +- Added dynamodb deletion_protection_enabled defaults + ## [v1.11.0] - 2024-07-03 ### Changed - Bump `redis` module version to `1.2.1` diff --git a/charts/terraform-cloud/Chart.yaml b/charts/terraform-cloud/Chart.yaml index 26058e0b..f8a20bf4 100644 --- a/charts/terraform-cloud/Chart.yaml +++ b/charts/terraform-cloud/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.11.0 +version: 1.12.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/terraform-cloud/README.md b/charts/terraform-cloud/README.md index 82d2d5e2..b3730393 100644 --- a/charts/terraform-cloud/README.md +++ b/charts/terraform-cloud/README.md @@ -1,6 +1,6 @@ # terraform-cloud -![Version: 1.11.0](https://img.shields.io/badge/Version-1.11.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.0](https://img.shields.io/badge/AppVersion-2.0.0-informational?style=flat-square) +![Version: 1.12.0](https://img.shields.io/badge/Version-1.12.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.0](https://img.shields.io/badge/AppVersion-2.0.0-informational?style=flat-square) A Helm chart for provisioning resources using Terraform Cloud diff --git a/charts/terraform-cloud/templates/_helpers.tpl b/charts/terraform-cloud/templates/_helpers.tpl index 9f561154..46be712d 100644 --- a/charts/terraform-cloud/templates/_helpers.tpl +++ b/charts/terraform-cloud/templates/_helpers.tpl @@ -138,6 +138,10 @@ app.mintel.com/terraform-allow-destroy: {{ (include "mintel_common.terraform_clo {{- if ( eq .Global.clusterEnv "dev") }} {{- $_ := set $defaults "point_in_time_recovery_enabled" false }} {{- end }} + {{/* deletion_protection */}} + {{- if ( not ( has .Global.clusterEnv (list "prod" "logs"))) }} + {{- $_ := set $defaults "deletion_protection_enabled" false }} + {{- end }} {{- end }} {{/* Opensearch */}} {{- if ( eq .ResourceType "opensearch")}}