I set up a dependency chain which creates a race condition and a "snapshot integrity failure" because it "refers to missing parent", but that shouldn't happen if
parent
implies
dependsOn
.
aloof-leather-66267
06/22/2023, 4:54 PM
Copy code
Parent 1 Parent 2
| |
Child 1------------>Child 2
aloof-leather-66267
06/22/2023, 4:57 PM
In this case, Child 2 references Child 1. Child 2 is created first, which causes Child 1 to be created because of the dependency. However, since Parent 1 is not created yet, the update fails with the above error, because Child 1 references Parent 1 which hasn't been created at.
aloof-leather-66267
06/22/2023, 4:58 PM
If
parent
implied
dependsOn
, Child 1 wouldn't be created until after Parent 1, preventing the error.
aloof-leather-66267
06/22/2023, 5:45 PM
Well, I manually added the
dependsOn
, and ended up with un unresolved promises error, probably due to the cyclical dependency. I guess I need to refactor the dependency chain.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.