Creates a Pub/Sub topic
Primarily used for FSI - MonteCarlo Tutorial: fsi-montecarlo-on-batch-tutorial.
The following example creates a Pub/Sub topic.
- id: pubsub_topic
source: community/modules/pubsub/topic
Also see usages in this example blueprint.
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.
Name | Version |
---|---|
terraform | >= 1.0 |
>= 4.42 | |
random | ~> 3.0 |
Name | Version |
---|---|
>= 4.42 | |
random | ~> 3.0 |
No modules.
Name | Type |
---|---|
google_pubsub_schema.example | resource |
google_pubsub_topic.example | resource |
random_id.resource_name_suffix | resource |
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 |
Name | Description |
---|---|
topic_id | Name of the topic that was created. |
topic_schema | Name of the topic schema that was created. |