community/modules/pubsub/topic/variables.tf (68 lines of code) (raw):
/**
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
variable "deployment_name" {
description = "The name of the current deployment"
type = string
}
variable "project_id" {
description = "Project in which the HPC deployment will be created"
type = string
}
variable "topic_id" {
description = "The name of the pubsub topic to be created"
type = string
default = null
}
variable "schema_id" {
description = "The name of the pubsub schema to be created"
type = string
default = null
}
variable "schema_json" {
description = "The JSON definition of the pubsub topic schema"
type = string
default = <<CCE
{
"name" : "Avro",
"type" : "record",
"fields" :
[
{"name" : "ticker", "type" : "string"},
{"name" : "epoch_time", "type" : "int"},
{"name" : "iteration", "type" : "int"},
{"name" : "start_date", "type" : "string"},
{"name" : "end_date", "type" : "string"},
{
"name":"simulation_results",
"type":{
"type": "array",
"items":{
"name":"Child",
"type":"record",
"fields":[
{"name":"price", "type":"double"}
]
}
}
}
]
}
CCE
}
variable "labels" {
description = "Labels to add to the instances. Key-value pairs."
type = map(string)
}