-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reference Eventarc created subscription to change its configuration #12254
Comments
@fedexist I don't know why you received |
Sure thing, I'll try to explain myself better. This would be the complete configuration and should be enough to reproduce the issue:
What I think is happening is this:
|
@edwardmedia Yep, it makes sense and that's what I was asking in the first place. Still, I was wondering if it wouldn't make more sense that this resource gets automatically imported or, even, add the possibility to configure these resources directly from the eventarc trigger resource. I don't know if it can be considered a feature request or something like that, but it would be nice to add that to the |
@fedexist I don't believe this could happen: |
@edwardmedia I see your point, but, still, when the trigger is created it has both the topic and the subscription created, available in Anyway, thanks your help, integrating the import of an automatically created resource in our current pipeline run by CI/CD might be a bit tricky and certainly a solution with a single |
@fedexist thanks for your point and understand what you expected, but again as I explained earlier it is impossible to implement that at the provider level. Closing the question now |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Hi, I have an Eventarc trigger which creates an underlying topic and related subscription. Thing is, I'd like to update the subscription configuration by changing its default value of
ack_deadline_seconds
.I tried creating the following resource
but it fails with the error
Error: Error creating Subscription: googleapi: Error 409: Resource already exists in the project
So, apparently, the resources created by Eventarc are not contained by Terraform state? Is it possible to do what I want? I certainly do not want to manually update the subscription
What is an alternative?
Run
apply
(the tf module without the configuration change) ->import
(of the created subscription, got from the resource outputs) ->apply
(the configuration change) ?Maybe it should be possible to set a subscription to the
eventarc_trigger
resource? Just like it's possible to set an existing pubsub topic.The text was updated successfully, but these errors were encountered: