Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[concepts/options/deleteBeforeReplace] Typo fix + consistency warnings #13980

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lukealbao
Copy link

@lukealbao lukealbao commented Feb 5, 2025

Proposed changes

  1. Typo fix closes [docs] deleteBeforeReplace affects dependents #13934
  2. Additional warning for eventually consistent systems.

For (2), we recently ran into this with AWS. In this scenario, an IAM Role with deleteBeforeReplace had an eks.AccessEntry dependency. The API calls executed by the aws provider looked like this:

2025-01-06T21:01:49Z           DeleteRole
2025-01-06T21:01:50Z           CreateRole
2025-01-06T21:01:51Z    CreateAccessEntry

The DeleteRole operation is eventually consistent, and in this instance it took several seconds to propagate through AWS. The CreateAccessEntry call thus succeeded with a reference to the deleted role, and the newly created role was unable to access the cluster. Since the ARN for the role did not change (we had changed the provider), the Pulumi state was wholly unaware of this.

GCP does [not have this problem]. I'm not sure about other cloud providers.

Related issues (optional)

@lukealbao lukealbao requested a review from a team as a code owner February 5, 2025 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[docs] deleteBeforeReplace affects dependents
1 participant