Skip to content

Missing no_wrapper option in push_config for subscriptions #208

@quart

Description

@quart

TL;DR

Not able to set option described here 1

this is under push_config, option no_wrapper block write_metadata (which accepts true or false)

further reference doc 1

Expected behavior

This should be added to inputs of push_subscriptions.

Observed behavior

Not possible to set it in any version

Terraform Configuration

module "pubsub" {
  source     = "terraform-google-modules/pubsub/google"
  topic   = "topic_name1"
  version    = "~> 7.0"
  project_id = some_project_id
    push_subscriptions = [
    {
      name                       = "push"              // required      
      push_endpoint              = "https://some url" // required  
    }
  ]
}


First, I create a pubsub topic with the above configuration. I'm not able to set no_wrapper option. Then I manually set this option from the GCP dashboard (on the uix those options are called 'Enable payload extraction' and 'Sensitive metadata'), and execute 'terraform apply' which shows that no_wrapper is to be removed.  

  ~ resource "google_pubsub_subscription" "push_subscriptions" {
        id                           = "projects/gw-xxx-dev-priv-xxxx/subscriptions/push"
        name                         = "push"
        # (10 unchanged attributes hidden)

      ~ push_config {
            # (2 unchanged attributes hidden)

          - no_wrapper {
              - write_metadata = true -> null
            }
        }

        # (1 unchanged block hidden)
    }

Terraform Version

terraform {
  required_version = ">=0.13.0"
  required_providers {
    google = {
      source  = "hashicorp/google"
      version = ">= 5.22, < 6"
    }
    google-beta = {
      source  = "hashicorp/google-beta"
      version = ">= 5.22, < 6"
    }
  }
}

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    StalebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions