forked from terraform-google-modules/terraform-google-pubsub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmetadata.yaml
More file actions
137 lines (136 loc) · 4.83 KB
/
metadata.yaml
File metadata and controls
137 lines (136 loc) · 4.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# Copyright 2025 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.
apiVersion: blueprints.cloud.google.com/v1alpha1
kind: BlueprintMetadata
metadata:
name: terraform-google-pubsub-pub
annotations:
config.kubernetes.io/local-config: "true"
spec:
info:
title: terraform-google-pubsub
source:
repo: https://github.com/terraform-google-modules/terraform-google-pubsub
sourceType: git
dir: /modules/pub
version: 8.0.1
actuationTool:
flavor: Terraform
version: ">= 1.3"
description: {}
content:
examples:
- name: bigquery
location: examples/bigquery
- name: bigquery-separate-pub-sub
location: examples/bigquery-separate-pub-sub
- name: cloud_storage
location: examples/cloud_storage
- name: cloud_storage-separate-pub-sub
location: examples/cloud_storage-separate-pub-sub
- name: kms
location: examples/kms
- name: push_subscription-separate-pub-sub
location: examples/push_subscription-separate-pub-sub
- name: simple
location: examples/simple
- name: simple-separate-pub-sub
location: examples/simple-separate-pub-sub
- name: subscriptions_only
location: examples/subscriptions_only
interfaces:
variables:
- name: project_id
description: The project ID to manage the Pub/Sub resources.
varType: string
required: true
- name: topic
description: The Pub/Sub topic name.
varType: string
required: true
- name: topic_labels
description: A map of labels to assign to the Pub/Sub topic.
varType: map(string)
defaultValue: {}
- name: topic_message_retention_duration
description: The minimum duration in seconds to retain a message after it is published to the topic.
varType: string
- name: message_storage_policy
description: A map of storage policies. Default - inherit from organization's Resource Location Restriction policy.
varType: map(any)
defaultValue: {}
- name: topic_kms_key_name
description: The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic.
varType: string
- name: schema
description: Schema for the topic.
varType: |-
object({
name = string
type = string
definition = string
encoding = string
})
- name: publisher_service_accounts
description: Service account email which required roles/pubsub.publisher role.
varType: |-
list(object({
id = string
service_account = string
}))
defaultValue: []
connections:
- source:
source: github.com/GoogleCloudPlatform/terraform-google-cloud-run//modules/v2
version: ">= 0.13"
spec:
outputExpr: "{ \"id\": service_account_id.id, \"service_account\": service_account_id.email }"
- source:
source: github.com/terraform-google-modules/terraform-google-service-accounts//modules/simple-sa
version: ">= 4.4"
spec:
outputExpr: "{ \"id\": account_details.id, \"service_account\": account_details.email }"
outputs:
- name: id
description: The ID of the Pub/Sub topic
- name: topic
description: The name of the Pub/Sub topic
- name: topic_labels
description: Labels assigned to the Pub/Sub topic
- name: uri
description: The URI of the Pub/Sub topic
requirements:
roles:
- level: Project
roles:
- roles/pubsub.admin
- roles/resourcemanager.projectIamAdmin
- roles/bigquery.admin
- roles/storage.admin
- roles/run.admin
- roles/iam.serviceAccountAdmin
- roles/iam.serviceAccountUser
- roles/resourcemanager.projectIamAdmin
- roles/logging.viewer
services:
- cloudresourcemanager.googleapis.com
- pubsub.googleapis.com
- serviceusage.googleapis.com
- bigquery.googleapis.com
- storage.googleapis.com
- run.googleapis.com
- iam.googleapis.com
providerVersions:
- source: hashicorp/google
version: ">= 6.2, < 7"