https://pulumi.com logo
Title
a

acoustic-truck-53557

04/16/2022, 9:21 PM
Hi, I'm migrating from aws classic v4 to v5 and I'm having trouble with RDS insntace provisioning (https://www.pulumi.com/registry/packages/aws/api-docs/rds/instance/). On v5,
name
is deprecated and
db_name
is its replacement. If I just replace
name
with
db_name
while provisioning rds.instance, pulumi thinks I'm changing the value for
db_name
and plan to replace the instance. How can I just adjust the attribute (from name to db_name) without causing a replacement?
b

billowy-army-68599

04/16/2022, 10:01 PM
Use an alias
a

acoustic-truck-53557

04/16/2022, 10:02 PM
worked, thanks.
f

flat-queen-33017

05/16/2022, 5:40 PM
Hi there, Sorry, how does using an alias resolve the issue? My RDS is a protected resource If I rename the resource and put the old name in the aliases array then I face the same issue of pulumi wanting to delete my resource My goal is the same as Diogo’s I want to just replace
name
with
dbName
The values will be the same
Thanks in advance! : )
s

some-egg-62109

05/30/2022, 5:27 AM
@flat-queen-33017 Did you figure it out? We're running into the same issue where just setting
aliases=[pulumi.Alias(name="old_name")],
is not enough.
f

flat-queen-33017

06/01/2022, 2:00 PM
Unfortunately not yet : S