terraform-google-pubsub icon indicating copy to clipboard operation
terraform-google-pubsub copied to clipboard

Add option to control `enable_exactly_once_delivery` for subscriptions.

Open ttacon opened this issue 2 years ago • 10 comments

TL;DR

Currently, enabling exactly once delivery is a preview feature for GCP PubSub subscriptions. I'm curious if y'all are open to adding this flag while it's in a preview state to this module (the official provider supports it).

Terraform Resources

The official pubub_subscription provider supports the enable_exactly_once_delivery.

Detailed design

Implementing this should be a similar change to this one here.

The only major constraint would be that enable_exactly_once_deliver and enable_message_ordering are mutually exclusive. However, handling that doesn't feel like this module's responsibility (the provider should handle it, which it doesn't).

Additional information

No response

ttacon avatar Apr 29 '22 01:04 ttacon

Any other information that I can provide here?

ttacon avatar May 11 '22 01:05 ttacon

Howdy folks - checking in again, would this be a change that we'd be open to taking in?

ttacon avatar May 24 '22 17:05 ttacon

Hello,

I would also like to +1 this. I have the code changes that I've made myself, however it's annoying to apply the changes after init-ing the module.

notobsd2 avatar Jun 29 '22 14:06 notobsd2

because that i will have to create my own module :(..

hdavila146 avatar Jul 08 '22 18:07 hdavila146

@hdavila146 @ttacon @notobsd2 Happy to review a PR adding this

bharathkkb avatar Jul 09 '22 03:07 bharathkkb

Hello @bharathkkb I already got the code change an tested please let me know how can I delivery I don't have permission do a push in this repository and neither a PR 👎

hdavila146 avatar Jul 11 '22 04:07 hdavila146

Hello @bharathkkb I already got the code change an tested please let me know how can I delivery I don't have permission do a push in this repository and neither a PR 👎

Hi @hdavila146 - Thanks for reaching out. The standard practice is to create your own fork of this repo and upload your changes to a branch on your fork. You should then be able to create a pull request from the branch in your fork to this repository.

apeabody avatar Jul 11 '22 15:07 apeabody

this is done in the @ttacon @notobsd2 commit 9b6b91383097df226951c48c0e0b3df86795a842

hdavila146 avatar Jul 15 '22 19:07 hdavila146

Hello, now google doesn't support enable_exactly_once_delivery for push subscription only for pull I will do a new PR 👎 @apeabody Error: Error creating Subscription: googleapi: Error 400: A subscription cannot have push config or bigquery config set with exactly once delivery configured. │ │ with google_pubsub_subscription.push_subscriptions["system_anvyl-event-processor"], │ on main.tf line 118, in resource "google_pubsub_subscription" "push_subscriptions": │ 118: resource "google_pubsub_subscription" "push_subscriptions" { │ ╵ ERRO[0026] 1 error occurred: * exit status 1

hdavila146 avatar Jul 28 '22 05:07 hdavila146

9b6b913

Thanks @hdavila146 - Once you open the PR please @ me in a comment and I'll try to take a look.

apeabody avatar Jul 28 '22 15:07 apeabody