Open sfc-gh-llin opened 1 year ago
Hi @sfc-gh-llin thanks for getting in touch.
From an initial read, this looks like it could be similar to this old upstream issue: https://github.com/hashicorp/terraform-provider-google/issues/7562. My reading of this issue is that the field was not mutable and therefore any modification to it required deleting and recreating the resource.
Reading the documentation for the pubsub subscription patch method it appears that the subscription.ackDeadlineSeconds
property is able to be updated. This document also includes the updateMask
which it describes as:
Required. Indicates which fields in the provided subscription to update. Must be specified and non-empty. This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".
It would appear that the underlying provider is failing to set this field correctly.
Here is the code where the update mask should be being set:
The next step here would be to use verbose logging to see what we're passing to the provider for this field or to identify if the same error occurs using the terraform provider directly.
What happened?
pubsub.NewSubscription of
github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/pubsub
failed to update the subscription with* Error updating Subscription "projects/<projectName>/subscriptions/<subscriptionName>": googleapi: Error 400: The update_mask in the UpdateSubscriptionRequest must be set, and must contain a non-empty paths list.
when we add a new arg to it.Expected Behavior
subscription should be updated without error.
Steps to reproduce
create a pubsub Subscription
subscription created
add an arg to update, and run
pulumi up
subscription failed with
Output of
pulumi about
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).