README.md

June 10, 2026 ยท View on GitHub

Description

Creates a Pub/Sub topic

Primarily used for FSI - MonteCarlo Tutorial: fsi-montecarlo-on-batch-tutorial.

Example

The following example creates a Pub/Sub topic.

  - id: pubsub_topic
    source: community/modules/pubsub/topic

Also see usages in this example blueprint.

License

Copyright 2026 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.

Requirements

NameVersion
terraform>= 1.12.2
google>= 4.42
random~> 3.0

Providers

NameVersion
google>= 4.42
random~> 3.0

Modules

No modules.

Resources

NameType
google_pubsub_schema.exampleresource
google_pubsub_topic.exampleresource
random_id.resource_name_suffixresource

Inputs

NameDescriptionTypeDefaultRequired
deployment_nameThe name of the current deploymentstringn/ayes
labelsLabels to add to the instances. Key-value pairs.map(string)n/ayes
project_idProject in which the HPC deployment will be createdstringn/ayes
schema_idThe name of the pubsub schema to be createdstringnullno
schema_jsonThe JSON definition of the pubsub topic schemastring"{ \n \"name\" : \"Avro\", \n \"type\" : \"record\", \n \"fields\" : \n [\n {\"name\" : \"ticker\", \"type\" : \"string\"},\n {\"name\" : \"epoch_time\", \"type\" : \"int\"},\n {\"name\" : \"iteration\", \"type\" : \"int\"},\n {\"name\" : \"start_date\", \"type\" : \"string\"},\n {\"name\" : \"end_date\", \"type\" : \"string\"},\n {\n \"name\":\"simulation_results\",\n \"type\":{\n \"type\": \"array\", \n \"items\":{\n \"name\":\"Child\",\n \"type\":\"record\",\n \"fields\":[\n {\"name\":\"price\", \"type\":\"double\"}\n ]\n }\n }\n }\n ]\n }\n"no
topic_idThe name of the pubsub topic to be createdstringnullno

Outputs

NameDescription
topic_idName of the topic that was created.
topic_schemaName of the topic schema that was created.