https://pulumi.com logo
#general
Title
# general
m

miniature-advantage-31279

07/24/2021, 4:35 AM
Hi guys, just curious, how do you manage to avoid the Route53 records errors for:
[ERR]: Error building changeset: InvalidChangeBatch: [Tried to create resource record set [name='***', type='CNAME'] but it already exists]
even though I applied the options for:
Copy code
{ deleteBeforeReplace: true },
b

bored-oyster-3147

07/24/2021, 6:31 PM
Did you only just add the deleteBeforeReplace option to your code? That option, and all others, needs to be successfully updated and be in state before they apply. So first you would set it to true, do Pulumi up, than make the change that will create a new dns record, than Pulumi up again. If you have already had successful updates with that set to true than disregard.
m

miniature-advantage-31279

07/29/2021, 10:28 PM
OH, that make sense, I will give another try, thanks for this
2 Views