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

bright-orange-69401

04/09/2020, 8:04 AM
Is there a config or a pattern I can use to avoid race conditions in Pulumi ? I'm trying to delete a type A DNS record to replace it with a CNAME record, but it seems Pulumi tries to create the CNAME first -and fails- instead of destroying the old resource before creating the new one.
delete_before_replace
does not help me here because the two records are 2 separate resources (they are in different stacks)
l

limited-rainbow-51650

04/09/2020, 8:32 AM
So the A-record is created in a Pulumi resource in one stack, but you want to replace it by creating the DNS CNAME record as a Pulumi resource in another stack?