CDK question 1. I want to add a role to an RDS dat...
# sst
d
CDK question 1. I want to add a role to an RDS database, but I manually assigned it. 2. Cloudformation rollsback the stack with the error when I try to add it. 3. I could manually use the console to remove the role, but then my site stops working. 4. Is there a way to tell CDK/Cloudformation that this error is "okay"? 5. (I'm also using the Cfn escape hatch here.. which might be what is making this more fragile)
t
Can you make a new role and attach it then manually remove the old one?
d
Ooooh, let's see!
We can only have one role attached.. maybe we can slide it....
d
Unfortunately RDS only allows one role per "Feature". We're trying to re-attach a new Lambda feature role. Tricky. I think we should contact the aws team and see
it was as simple as changing the resource id hahaha
f
lol did u manage to get it to work?
d
Yep, we had to use a different name for the role. That got around the duplicate role error from Cloudformation. Cloudformation let us attach another role. Even though the AWS Console says that we can only have 1.