aws_docdbelastic : Changing AUTH_TYPE doesn't trigger replacement #29251
Labels
@aws-cdk/aws-docdb
Related to Amazon DocumentDB
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p3
Describe the bug
Changing AUTH_TYPE doesn't trigger replacement
Expected Behavior
When I try to change the
AUTH_TYPE
of Elastic docdb cluster fromPLAIN_TEXT
toSECRET_ARN
, a replacement should be triggered. Wherein, the old cluster should be deleted and new cluster should be created.Current Behavior
When I try to change the
AUTH_TYPE
of Elastic docdb cluster fromPLAIN_TEXT
toSECRET_ARN
or vice-versa, a new cluster is created but it fails with an error that cluster with this name already exists.Error -
Even the CDK diff shows that the cluster will be replaced
Reproduction Steps
Change
AUTH_TYPE
of existing cluster from CDK.Possible Solution
Cloud formation shows that it is creating a new resource. Shouldn't it delete the old one first?
Additional Information/Context
No response
CDK CLI Version
2.123.0
Framework Version
No response
Node.js Version
v16.20.2
OS
Linux/UNIX
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: