faint-whale-905
03/09/2022, 5:05 PMreplicate_source_db
must be provided in ARN format. e.g. arn:aws:rds:us-east-1:12345890:db:my-primary-database-1
. However, once the instance is created, RDS stores the replicate_source_db
as a simple name. arn:aws:rds:us-east-1:12345890:db:my-primary-database-1
-> my-primary-database-1
. Any further attempts to modify the instance will fail because arn:aws:rds:us-east-1:12345890:db:my-primary-database-1
!= my-primary-database-1,
RDS interprets this as an attempt to change the replicate database (which isn't allowed). Our attempt to work around this:
1. Create instance with ARN
2. Manually refresh Pulumi state to capture the short name from RDS
3. Update Pulumi to use short name.
4. Manage instance via Pulumi as usual.
The problematic scenario that is what actually happens and brought me here.
1. Create instance with ARN
2. Manually refresh Pulumi state to capture the short name from RDS
3. Update Pulumi to use short name.
4. An attempt to manage the instance (pulumi up) fails with the arn:aws:rds:us-east-1:12345890:db:my-primary-database-1
!= my-primary-database-1
mismatch despite that fact that the ARN doesn't exist in the state file or in RDS at the time of execution.
5. The Pulumi state file value goes back to the ARN.
6. Cycle continues
Any ideas how this is happening?stocky-wire-60053
03/09/2022, 5:13 PMbillowy-army-68599
faint-whale-905
03/09/2022, 5:55 PMif action == create
format = ARN
else
format = short
billowy-army-68599
faint-whale-905
03/09/2022, 6:33 PM