cloudresourcemanager.v3.ProjectIamMember
always detects diff and causes drift check (--expect-no-changes
) to fail
#976
Labels
area/diff
impact/cost
Something that is causing unneeded expense
impact/reliability
Something that feels unreliable or flaky
kind/bug
Some behavior is incorrect or out of spec
What happened?
I am using cloudresourcemanager/v3.ProjectIamMember as described in the docs.
However, when I run pulumi, it always detects a difference between what's described in the source code and the state.
This doesn't create any real problems under normal operation, since the IAM members are correctly created and updated in google cloud, but since pulumi always detects a difference it wants to update these resources on every deployment, which is unnecessary, and more importantly, all drift checks fail, so drift checking is rather hard to do.
Pulumi cloud summarizes the diff like so:
It appears from looking at the detailed diff in Pulumi Cloud that the individual ProjectIamMember resource in the source code is being compared to the entire IAM Policy:
Could this bug have been introduced in #653?
Example
Here is a simplified excerpt from our infrastructure code, which is publicly available here.
project.ts:
Then I run a drift check with these options:
Here is an example of this problem occurring in a github action.
Output of
pulumi about
This is the output from my local machine, but the github action runner is obviously a different machine.
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: