-
Notifications
You must be signed in to change notification settings - Fork 140
Closed as not planned
Labels
Description
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
musflood