Skip to content

Latest commit

 

History

History
82 lines (58 loc) · 4.02 KB

File metadata and controls

82 lines (58 loc) · 4.02 KB

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

Requirements

Name Version
terraform >= 1.0
google >= 4.42
random ~> 3.0

Providers

Name Version
google >= 4.42
random ~> 3.0

Modules

No modules.

Resources

Name Type
google_pubsub_schema.example resource
google_pubsub_topic.example resource
random_id.resource_name_suffix resource

Inputs

Name Description Type Default Required
deployment_name The name of the current deployment string n/a yes
labels Labels to add to the instances. Key-value pairs. map(string) n/a yes
project_id Project in which the HPC deployment will be created string n/a yes
schema_id The name of the pubsub schema to be created string null no
schema_json The JSON definition of the pubsub topic schema string "{ \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_id The name of the pubsub topic to be created string null no

Outputs

Name Description
topic_id Name of the topic that was created.
topic_schema Name of the topic schema that was created.