Skip to content
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

Add option to control enable_exactly_once_delivery for subscriptions. #91

Open
ttacon opened this issue Apr 29, 2022 · 10 comments
Open
Labels
enhancement New feature or request triaged Scoped and ready for work

Comments

@ttacon
Copy link

ttacon commented Apr 29, 2022

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 ttacon added the enhancement New feature or request label Apr 29, 2022
@ttacon
Copy link
Author

ttacon commented May 11, 2022

Any other information that I can provide here?

@ttacon
Copy link
Author

ttacon commented May 24, 2022

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

@notobsd2
Copy link

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.

@hdavila146
Copy link
Contributor

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

@bharathkkb
Copy link
Member

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

@bharathkkb bharathkkb added the triaged Scoped and ready for work label Jul 9, 2022
@hdavila146
Copy link
Contributor

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 👎

@apeabody
Copy link
Contributor

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.

@hdavila146
Copy link
Contributor

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

@hdavila146
Copy link
Contributor

hdavila146 commented Jul 28, 2022

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

@apeabody
Copy link
Contributor

9b6b913

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triaged Scoped and ready for work
Projects
None yet
Development

No branches or pull requests

5 participants