Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.85 KB

README.md

File metadata and controls

60 lines (42 loc) · 1.85 KB

Terraform module - Google Pub/Sub

Terraform module which creates Pub/Sub resources on Google Cloud Platform‎.

These types of resources are supported:

Compatibility

This module is meant for use with Terraform 0.12. If you haven't upgraded and need a Terraform 0.11.x-compatible version of this module, the last released version intended for Terraform 0.11.x is 2.0.0.

Installation Dependencies

Usage

e.g.: pubsub.tf

module "pubsub_module_name" {
  source     = "github.com/russmedia/terraform-google-pubsub"
  version    = "3.0.0"
  project    = "workspace-name"
  definition = {
    "name" = ["my-topic-name"]
    "pull" = [
      {
        "name" = "some-pull-subscription-name"
      }
    ]
    "push" = [
      {
        "name" = "my-subscription-name"
        "url"  = "https://www.domain.tld/endpoint"
      },
    ]
  }
}

and see a plan with following command terraform plan --out=.tfplan. In case the output looks good you can apply with terraform apply ".tfplan".

For more usage examples go to Examples folder.

Note: You don't have to use *.tfvars file. It is just easier to switch when you have different data per environment.

Known issue

  • If used with IAM (e.g.: service account), this account has to be created before terraform runs plan for Pub/Sub.

Authors

Module managed by erento GmbH.