Quick (maybe easy question): I manage a Google Cloud Run service with Pulumi. At some point, changes to the container image it uses stopped updating traffic to the revision made in the Cloud Run service. This
apply
runs in Circle CI (which will install the latest providers), has there been a change in the provider around updating the traffic to newly created revisions? Thanks!
bland-jackal-6231
02/06/2025, 2:57 PM
FYI I am using
gcp.cloudrunv2.Service
bland-jackal-6231
02/06/2025, 2:59 PM
…and from the docs…
Copy code
traffics
ServiceTraffic[]
Specifies how to distribute traffic over a collection of Revisions belonging to the Service. If traffic is empty or not provided, defaults to 100% traffic to the latest Ready Revision.
I am leaving this empty.
bland-jackal-6231
02/06/2025, 3:07 PM
…also… in the output, the
traffics
value still shows the previous revision, not the curren deployed one.
a
aloof-lock-69180
02/13/2025, 11:11 AM
Did you by any chance update traffic yourself outside Pulumi?
By default, Google Cloud routes traffic to the latest revision. But, if you manually update traffic or an active revision yourself, it will keep that active until you change traffic again yourself. You can “reset” this behaviour by running the command below;
Copy code
gcloud run services update-traffic myservice --to-latest
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.