pulumi / pulumi-gcp

A Google Cloud Platform (GCP) Pulumi resource package, providing multi-language access to GCP
Apache License 2.0
182 stars 52 forks source link

Pulumi refresh : gcp:projects:IAMMember -> update [diff: ~etag] | ALL resource #751

Open raphaelauv opened 2 years ago

raphaelauv commented 2 years ago

Hello!

Issue details

running pulumi refresh on a stack without any change always update ALL my IAMMember ( I have 291 IAMMember in my stack ) because the etag "changed"

So every pulumi refresh show me

    ~ 291 to update
    46 unchanged

Steps to reproduce

gcp.projects.IAMMember("iam_member_bigquery.admin_XXXXXXXX@XXXXXXXX.com",
                       member="user:XXXXXXXXX@XXXXXX.com",
                       project=PROJECT,
                       role="roles/bigquery.admin",
                       opts=pulumi.ResourceOptions(parent=ALL_RESOURCE, protect=True))

in the "details" of pulumi refresh it show me

~ gcp:projects/iAMMember:IAMMember: (update) šŸ”’
    [id=XXXXXXXXXXX/roles/bigquery.admin/user:XXXXXXX@XXXXXXX.com]
    [urn=urn:pulumi:XXXXXX-prod::XXXXX::gcp:component:all_resource$gcp:projects/iAMMember:IAMMember::iam_member_bigquery.admin_XXXXXXXX@XXXXXXXXstore.com]
    [provider=urn:pulumi:XXXXXXXXX-prod::XXXXX::pulumi:providers:gcp::default_gcp::XXX-XXXXXX-XXXXXX-XXXXX]
    --outputs:--
  ~ etag     : "BwXXqDCxmSw=" => "BwXYJjvSbgA="

If I enter YES then

Resources:
    ~ 291 updated
    46 unchanged

Duration: 1m47s
danielrbradley commented 2 years ago

Hi, thanks for writing this up.

What's the impact of accepting the updated etag apart from the resources in the stack being updated?

didlawowo commented 9 months ago

should be usefull to manage this etag update cause it take a lot of time when you manage a lot of iam role.

mjeffryes commented 3 days ago

Unfortunately, it looks like this issue hasn't seen any updates in a while. If you're still encountering this problem, could you leave a quick comment to let us know so we can prioritize it?

raphaelauv commented 1 day ago

I'm no longer using gcp and pulumi so I don't know but my example was reproductible

mjeffryes commented 1 day ago

I suspect we would have heard a lot more complaints by now if it was still a problem, but we'll take a moment to try to repro on latest.