https://pulumi.com logo
Title
b

bitter-application-91815

03/23/2021, 6:53 PM
is there anyway around this
b

bored-oyster-3147

03/23/2021, 6:57 PM
well, pulumi is trying to do a
replace
by creating the new DB first before deleting the old DB. The bigger question is, why is changing something like a username and password causing the RDS instance to need to be recreated? Are there any other changes that are part of this update? And if there isn't - and it's just behavior you can't get around - than is there a way for you to add new credentials without doing the replace? Presumably you don't want to lose your data by spinning up a new DB.
b

bitter-application-91815

03/23/2021, 7:03 PM
The only change is the master username and password on the cluster. Maybe that needs to be fixed ? i.e. immutable
b

billowy-army-68599

03/23/2021, 7:08 PM
@bitter-application-91815 master username doesn't support in place updates, that's on the aws api side
so if you change that in your state, it'll recreate
b

bored-oyster-3147

03/23/2021, 7:10 PM
ah yea. So you can only rotate the password
b

bitter-application-91815

03/23/2021, 7:17 PM
Makes sense, thanks guys