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

Add `skipBacklog` option to pubsublite subscription creation

Open rdooley opened this issue 2 years ago • 0 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment. If the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.

Description

Currently the pubsublite subscription does not offer an option to pass the skipBacklog boolean variable on create to the GCP api, meaning that users are required to either manually initiate a seek operation on the subscription or process a full backlog if creating a subscription on a topic with data.

New or Affected Resource(s)

  • google_pubsub_lite_subscription

Potential Terraform Configuration

resource "google_pubsub_lite_subscription" "example" {
  name  = "example-subscription"
  topic = google_pubsub_lite_topic.example.name
  delivery_config {
    delivery_requirement = "DELIVER_AFTER_STORED"
  }
  skip_backlog = true // optional boolean, default to false to match gcp api
}

References

None

rdooley avatar Aug 10 '22 20:08 rdooley