Google Cloud Tasks Queue

This page shows how to write Terraform for Cloud Tasks Queue and write them securely.

code-icon

Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.

get-started-button

Terraform Example (google_cloud_tasks_queue)

A named resource to which messages are sent by publishers.

Warning: This resource requires an App Engine application to be created on the project you're provisioning it on. If you haven't already enabled it, you can create a google_app_engine_application resource to do so. This resource's location will be the same as the App Engine location specified.

Parameters

  • id optionalcomputed - string
  • location required - string
    • The location of the queue

  • name optional - string
    • The queue name.

  • project optionalcomputed - string

Example Usage (from GitHub)

github-iconkwadie/bq-pii-classifier
resource "google_cloud_tasks_queue" "inspector_queue" {
  project = var.project
  location = var.region
  name = var.inspector_queue

  # DLP Limits:
github-iconcovid19cz/erouska-firebase
resource "google_cloud_tasks_queue" "upload-removal" {
  name     = "upload-removal"
  location = var.region

  rate_limits {
    max_concurrent_dispatches = 100
github-iconcovid19cz/erouska-firebase
resource "google_cloud_tasks_queue" "upload-removal" {
  name     = "upload-removal"
  location = "europe-west3"

  rate_limits {
    max_concurrent_dispatches = 100
github-iconww24/calendar-notifier
resource "google_cloud_tasks_queue" "calendar_notifier" {
  name     = var.name
  location = var.location

  rate_limits {
    max_dispatches_per_second = 100
github-iconebomart/commerce-infrastructure
resource "google_cloud_tasks_queue" "payment_charge_status_queue" {
  provider = google-beta
  name     = "payment-charge-status-queue"
  location = var.cloud_tasks_region
  project  = var.project_id

Frequently asked questions

What is Google Cloud Tasks Queue?

Google Cloud Tasks Queue is a resource for Cloud Tasks of Google Cloud Platform. Settings can be wrote in Terraform.

Where can I find the example code for the Google Cloud Tasks Queue?

For Terraform, the kwadie/bq-pii-classifier, covid19cz/erouska-firebase and covid19cz/erouska-firebase source code examples are useful. See the Terraform Example section for further details.