Open Exter-dg opened 9 months ago
I guess its the restrict from cloudformation that does not allow you to update that in the same time and you need to create a new security group instead.
@pahud So what's the workaround? I even tried creating the security group first and then trying to add it to docdb cluster. It still throws the same error
Temporary workaround: I removed the SG association with DocDB and manually ran the stack. This created the new SG. Later on, I manually added this SG to our DocDB cluster from AWS console. I again updated our code to its original state - attaching the SG to our docdb cluster using CDK. When it was deployed again, it ran without issues.
Describe the bug
When updating the security group in docdbElasticCluster, CDK throws an error -
Earlier I used to pass a SG ARN manually. Now, we create a new security group in the same stack.
New Code:
CDK Diff only shows that the security group is being updated:
Expected Behavior
SG should be updated
Current Behavior
Throws error
Reproduction Steps
Code
Possible Solution
No response
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