Google Cloud Tasks Queue

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


Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.


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.


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

  • name optional - string
    • The queue name.

  • project optionalcomputed - string

Example Usage (from GitHub)

resource "google_cloud_tasks_queue" "inspector_queue" {
  project = var.project
  location = var.region
  name = var.inspector_queue

  # DLP Limits:
resource "google_cloud_tasks_queue" "upload-removal" {
  name     = "upload-removal"
  location = var.region

  rate_limits {
    max_concurrent_dispatches = 100
resource "google_cloud_tasks_queue" "upload-removal" {
  name     = "upload-removal"
  location = "europe-west3"

  rate_limits {
    max_concurrent_dispatches = 100
resource "google_cloud_tasks_queue" "calendar_notifier" {
  name     =
  location = var.location

  rate_limits {
    max_dispatches_per_second = 100
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.