https://pulumi.com logo
#getting-started
Title
# getting-started
p

purple-rocket-49093

07/05/2023, 11:44 AM
Anyone else seeing this behavior? pulumi refresh is completely different than pulumi up --refresh
e

echoing-dinner-19531

07/05/2023, 1:03 PM
Well they should be different, "up --refresh" still runs the update part it just does the refresh first.
p

purple-rocket-49093

07/05/2023, 1:04 PM
but the refresh that it does it is different than the pulumi refresh
e

echoing-dinner-19531

07/05/2023, 1:04 PM
That's unexpected, do you have an example resource diff?
p

purple-rocket-49093

07/05/2023, 1:05 PM
Copy code
pulumi:pulumi:Stack                        mobilo-infra-stag
     ├─ gcp:projects:Service                    srv-apigtw
     ├─ gcp:projects:Service                    srv-compute
     ├─ gcp:projects:Service                    srv-control
     ├─ gcp:projects:Service                    ghp-functions-srv-iamcreds
     ├─ gcp:apigateway:Api                      webhook-gtw-stag
     ├─ gcp:serviceAccount:Account              ghp-functions-sa
     ├─ gcp:compute:ManagedSslCertificate       util-gtw-stag-sslCertificate
     ├─ gcp:projects:Service                    srv-iamcreds
     ├─ gcp:apigateway:Api                      api-gtw-stag
     ├─ gcp:compute:GlobalAddress               webhook-gtw-stag-ipAddress-
     ├─ gcp:compute:ManagedSslCertificate       webhook-gtw-stag-sslCertificate
     ├─ gcp:compute:ManagedSslCertificate       api-gtw-stag-sslCertificate
     ├─ gcp:projects:Service                    srv-certmanager
 ~   ├─ gcp:projects:IAMBinding                 mobilo-staging-binding-functions     update     [diff: ~etag]
     ├─ gcp:projects:Service                    srv-management
     ├─ gcp:projects:Service                    srv-iam
     ├─ gcp:apigateway:Api                      util-gtw-stag
     ├─ gcp:iam:WorkloadIdentityPool            ghp-functions
     ├─ gcp:compute:GlobalAddress               util-gtw-stag-ipAddress-
     ├─ gcp:apigateway:ApiConfig                webhook-gtw-stag-api-config
     ├─ gcp:compute:GlobalAddress               api-gtw-stag-ipAddress-
     ├─ gcp:serviceAccount:IAMBinding           mobilo-staging-biding-workload
 ~   ├─ gcp:projects:IAMBinding                 mobilo-staging-binding-access-token  update     [diff: ~etag]
     ├─ gcp:apigateway:ApiConfig                api-gtw-stag-api-config
     ├─ gcp:apigateway:ApiConfig                util-gtw-stag-api-config
     ├─ gcp:apigateway:Gateway                  api-gtw-stag-gateway
     ├─ gcp:projects:Service                    srv-run
     ├─ gcp:compute:RegionNetworkEndpointGroup  webhook-gtw-stag-neg
     ├─ gcp:apigateway:Gateway                  webhook-gtw-stag-gateway
     ├─ gcp:apigateway:Gateway                  util-gtw-stag-gateway
     ├─ gcp:iam:WorkloadIdentityPoolProvider    ghp-functions-provider
     ├─ gcp:compute:RegionNetworkEndpointGroup  util-gtw-stag-neg
     ├─ gcp:compute:RegionNetworkEndpointGroup  api-gtw-stag-neg
     ├─ pulumi:providers:gcp                    mobistrano-provider
     ├─ gcp:compute:BackendService              webhook-gtw-stag-backendService
     ├─ gcp:compute:BackendService              util-gtw-stag-backendService
     ├─ gcp:compute:BackendService              api-gtw-stag-backendService
     ├─ gcp:compute:URLMap                      webhook-gtw-stag-urlMap
     ├─ gcp:compute:URLMap                      api-gtw-stag-urlMap
 ~   ├─ gcp:projects:IAMMember                  compute-sa-cloudfunctions-invoker    update     [diff: ~etag]
     ├─ gcp:compute:URLMap                      util-gtw-stag-urlMap
 ~   ├─ gcp:projects:IAMMember                  compute-sa-editor                    update     [diff: ~etag]
 ~   ├─ gcp:projects:IAMMember                  compute-sa-secretmanager-admin       update     [diff: ~etag]
     ├─ gcp:compute:TargetHttpsProxy            api-gtw-stag-targetHttpsProxy
     ├─ gcp:compute:GlobalForwardingRule        webhook-gtw-stag-forwardingRule
     ├─ gcp:compute:TargetHttpsProxy            util-gtw-stag-targetHttpsProxy
     ├─ gcp:compute:TargetHttpsProxy            webhook-gtw-stag-targetHttpsProxy
     ├─ gcp:compute:GlobalForwardingRule        util-gtw-stag-forwardingRule
     ├─ gcp:compute:GlobalForwardingRule        api-gtw-stag-forwardingRule
 ~   └─ gcp:projects:IAMMember                  mobistrano-sa                        update     [diff: ~etag]
Copy code
pulumi:pulumi:Stack                        mobilo-infra-stag
     ├─ gcp:projects:Service                    srv-compute
     ├─ gcp:projects:Service                    srv-apigtw
     ├─ gcp:apigateway:Api                      webhook-gtw-stag
     ├─ gcp:projects:Service                    srv-control
     ├─ gcp:compute:ManagedSslCertificate       webhook-gtw-stag-sslCertificate
     ├─ gcp:apigateway:Api                      api-gtw-stag
     ├─ gcp:serviceAccount:Account              ghp-functions-sa
     ├─ gcp:projects:Service                    srv-run
     ├─ gcp:projects:Service                    srv-iamcreds
     ├─ gcp:projects:Service                    ghp-functions-srv-iamcreds
     ├─ gcp:compute:ManagedSslCertificate       util-gtw-stag-sslCertificate
     ├─ gcp:projects:Service                    srv-certmanager
     ├─ gcp:iam:WorkloadIdentityPool            ghp-functions
     ├─ gcp:compute:ManagedSslCertificate       api-gtw-stag-sslCertificate
     ├─ gcp:compute:GlobalAddress               webhook-gtw-stag-ipAddress-
     ├─ gcp:projects:Service                    srv-management
     ├─ gcp:projects:Service                    srv-iam
     ├─ gcp:projects:IAMBinding                 mobilo-staging-binding-functions
     ├─ gcp:apigateway:Api                      util-gtw-stag
     ├─ gcp:compute:GlobalAddress               util-gtw-stag-ipAddress-
     ├─ gcp:compute:GlobalAddress               api-gtw-stag-ipAddress-
     ├─ gcp:projects:IAMBinding                 mobilo-staging-binding-access-token
     ├─ gcp:apigateway:ApiConfig                webhook-gtw-stag-api-config
     ├─ gcp:serviceAccount:IAMBinding           mobilo-staging-biding-workload
     ├─ gcp:apigateway:ApiConfig                api-gtw-stag-api-config
     ├─ gcp:apigateway:ApiConfig                util-gtw-stag-api-config
     ├─ gcp:iam:WorkloadIdentityPoolProvider    ghp-functions-provider
     ├─ gcp:apigateway:Gateway                  webhook-gtw-stag-gateway                      [diff: ~apiConfig]
     ├─ gcp:apigateway:Gateway                  api-gtw-stag-gateway                          [diff: ~apiConfig]
     ├─ gcp:apigateway:Gateway                  util-gtw-stag-gateway                         [diff: ~apiConfig]
     ├─ gcp:compute:RegionNetworkEndpointGroup  webhook-gtw-stag-neg                          [diff: ~region]
     ├─ gcp:compute:RegionNetworkEndpointGroup  util-gtw-stag-neg                             [diff: ~region]
     ├─ pulumi:providers:gcp                    mobistrano-provider
     ├─ gcp:compute:RegionNetworkEndpointGroup  api-gtw-stag-neg                              [diff: ~region]
     ├─ gcp:compute:URLMap                      api-gtw-stag-urlMap                           [diff: ~defaultService]
     ├─ gcp:compute:URLMap                      webhook-gtw-stag-urlMap                       [diff: ~defaultService]
     ├─ gcp:compute:BackendService              webhook-gtw-stag-backendService               [diff: ~backends,customResponseHeaders]
     ├─ gcp:compute:BackendService              api-gtw-stag-backendService                   [diff: ~backends,customResponseHeaders]
     ├─ gcp:compute:URLMap                      util-gtw-stag-urlMap                          [diff: ~defaultService]
     ├─ gcp:projects:IAMMember                  compute-sa-cloudfunctions-invoker
     ├─ gcp:projects:IAMMember                  compute-sa-secretmanager-admin
     ├─ gcp:compute:BackendService              util-gtw-stag-backendService                  [diff: ~backends,customResponseHeaders]
     ├─ gcp:projects:IAMMember                  compute-sa-editor
     ├─ gcp:compute:TargetHttpsProxy            api-gtw-stag-targetHttpsProxy                 [diff: ~sslCertificates,urlMap]
     ├─ gcp:compute:TargetHttpsProxy            webhook-gtw-stag-targetHttpsProxy             [diff: ~sslCertificates,urlMap]
     ├─ gcp:compute:GlobalForwardingRule        webhook-gtw-stag-forwardingRule
     ├─ gcp:compute:TargetHttpsProxy            util-gtw-stag-targetHttpsProxy                [diff: ~sslCertificates,urlMap]
     ├─ gcp:compute:GlobalForwardingRule        api-gtw-stag-forwardingRule
     ├─ gcp:compute:GlobalForwardingRule        util-gtw-stag-forwardingRule
     └─ gcp:projects:IAMMember                  mobistrano-sa
the first one is pulumi refresh the second one is pulumi up --refresh
e

echoing-dinner-19531

07/05/2023, 1:08 PM
yeh not what I'd expect but it's been a bit since I looked at the refresh code. We're mostly off work today (independence day holiday) but if you raise an issue at github.com/pulumi/pulumi/issues we can take a proper look tomorrow
p

purple-rocket-49093

07/05/2023, 1:09 PM
cool thanks I will do that.
thanks again.