Giter Club home page Giter Club logo

terraform-google-taskhawk-queue's Introduction

Taskhawk Queue App Terraform module

Taskhawk is a replacement for celery that works on AWS SQS/SNS and Google Pub/Sub, while keeping things pretty simple and straight forward.

This module provides a custom Terraform module for deploying Taskhawk infrastructure for Taskhawk Queue based app.

Usage

module "taskhawk-dev-myapp" {
  source   = "standard-ai/taskhawk-queue/google"
  queue    = "dev-myapp"

  enable_alerts = true

  labels = {
    app     = "myapp"
    env     = "dev"
  }
}

If using a single Google project for multiple environments (e.g. dev/staging/prod), ensure that queue includes your environment name.

Naming convention - lowercase alphanumeric and dashes only.

Please note Google's restrictions (if not followed, errors may be confusing and often totally wrong):

The Google topic and subscription names will be prefixed by taskhawk-.

Caveats

IAM

If you're using Terraform to create the Dataflow output GCS bucket, then ensure that permissions for the bucket include Storage Legacy Object Owner or Storage Object Admin. This is done by default if using Google Console, but not for Terraform. This can be done in Terraform like so:

data google_project current {}

resource "google_storage_bucket_iam_member" "taskhawk_firehose_editor_iam" {
  bucket = "${google_storage_bucket.taskhawk_firehose.name}"
  role   = "roles/storage.admin"
  member = "projectEditor:${data.google_project.current.id}"
}

resource "google_storage_bucket_iam_member" "taskhawk_firehose_owner_iam" {
  bucket = "${google_storage_bucket.taskhawk_firehose.name}"
  role   = "roles/storage.admin"
  member = "projectOwner:${data.google_project.current.id}"
}

Alternatively, you can restrict these permissions to the user Dataflow uses, which is: {project number}[email protected].

The Pub/Sub topic name will be prefixed by taskhawk-.

Release Notes

Github Releases

How to publish

Go to Terraform Registry, and Resync module.

terraform-google-taskhawk-queue's People

Contributors

maroux avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.