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

Ability to create Pub/Sub GCS based subscription #657

Open
lsieradzki opened this issue Nov 8, 2024 · 0 comments
Open

Ability to create Pub/Sub GCS based subscription #657

lsieradzki opened this issue Nov 8, 2024 · 0 comments

Comments

@lsieradzki
Copy link

SUMMARY

Google introduced a possibility to create Pub/Sub GCS based subscription which allows to read the messages from the topic and writes them directly to the GCS bucket. It would be nice to have such a possibility in the Ansible module as well.

Here are the details: https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

gcp_pubsub_subscription

ADDITIONAL INFORMATION

Here is a sample configuration of a GCS based Pub/Sub subscription:

- name: Control Pub/Sub dead letter topic GCS subscription
  google.cloud.gcp_pubsub_subscription:
    name: "{{ pubsub_control_topic_dead_letter_short_name }}-gcs-sub"
    topic: "{{ pubsub_control_topic_dead_letter_full_name }}"
    project: "{{ pubsub_control_subscription_gcp_project_id }}"
    cloud_storage: {
      bucket: "{{ feedrouter_pubsub_dead_letter_bucket_name }}",
      file_prefix: "{{ pubsub_control_topic_dead_letter_short_name }}_",
      max_duration: "{{ pubsub_control_subscription_gcs_dead_letter_batch_max_duration }}",
      max_bytes: "{{ pubsub_control_subscription_gcs_dead_letter_batch_max_bytes }}",
      output_format: "{{ pubsub_control_subscription_gcs_dead_letter_message_format }}",
      write_metadata: true
    }
    auth_kind: "application"
    state: "{{ pubsub_control_subscription_state }}"
lsieradzki pushed a commit to lsieradzki/google.cloud that referenced this issue Nov 8, 2024
lsieradzki pushed a commit to lsieradzki/google.cloud that referenced this issue Nov 8, 2024
lsieradzki pushed a commit to lsieradzki/google.cloud that referenced this issue Nov 8, 2024
SirGitsalot added a commit to lsieradzki/google.cloud that referenced this issue Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant