cloudposse / cloudposse/terraform-aws-documentdb-cluster

Change parameter group of the cluster to enable upgrading the DocDB via terraform

Open
#116 3 comments 4 reactions 0 assignees View on GitHub
Dominant language
HCL
Stars
70
Forks
99
PR merge metrics
No merged PRs in 30d

Description

### Describe the Feature

Beeing able to change the paramter group via the attribute [db_cluster_parameter_group](https://registry.terraform.io/providers/hashicorp/aws/5.5.0/docs/resources/docdb_cluster#db_cluster_parameter_group_name-1) in the resource aws_docdb_cluster.

### Expected Behavior

If you currently try to upgrade the DocDB from 3.6.0 to v5.0.0 you also have to upgrade the cluster family of
the paramater group to "docdb5.0" which according to the terraform plan results in destruction of the current PG
("docdb3.6") and then creation of a new one ("docdb5.0"). Which is expected behavior. However the apply fails because terraform cant destroy the existing PG ("docdb3.6") because it is still linked to to the DocDB.

### Use Case

Beeing able to Upgrade the created DocDB engine Version with terraform. For Example from v3.6.0 to 5.0.0.

### Describe Ideal Solution

Enable module to change parameter group of the DocDB so it is possible to change the cluster-family attribute which would enable to upgrade the DocDB with terraform

### Alternatives Considered

_No response_

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.