-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.yaml
108 lines (99 loc) · 3.16 KB
/
README.yaml
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
---
#
# This is the canonical configuration for the `README.md`
# Run `make readme` to rebuild the `README.md`
#
# Name of this project
name : Terraform GCP Pubsub
# License of this project
license: "APACHE"
# Canonical GitHub repo
github_repo: clouddrove/terraform-gcp-pubsub
# Badges to display
badges:
- name: "Latest Release"
image: "https://img.shields.io/github/release/clouddrove/terraform-gcp-pubsub.svg"
url: "https://github.com/clouddrove/terraform-gcp-pubsub/releases/latest"
- name: "tfsec"
image: "https://github.com/clouddrove/terraform-gcp-pubsub/actions/workflows/tfsec.yml/badge.svg"
url: "https://github.com/clouddrove/terraform-gcp-pubsub/actions/workflows/tfsec.yml"
- name: "Licence"
image: "https://img.shields.io/badge/License-APACHE-blue.svg"
url: "LICENSE.md"
- name: "Changelog"
image: "https://img.shields.io/badge/Changelog-blue"
url: "CHANGELOG.md"
prerequesties:
- name: Terraform
url: https://learn.hashicorp.com/terraform/getting-started/install.html
version: ">= 1.7.0"
providers:
- name: gcp
url: https://cloud.google.com/
version: ">= 5.22.0"
# description of this project
description: |-
This Terraform module provides a foundational structure for creating GCP Cloud Pub/Sub modules. It enables the automated provisioning and management of Pub/Sub topics, subscriptions, and IAM policies, offering a consistent and scalable approach to messaging and event-driven architectures on Google Cloud Platform.
# How to use this project
# How to use this project
usage: |-
Here are some examples of how you can use this module in your inventory structure:
```hcl
module "pubsub" {
source = "../../"
project_id = "clouddrove-1"
topic = "topic-1"
create_topic = true
create_subscriptions = true
topic_kms_key_name = ""
topic_iam_binding = true
topic_iam_binding_roles_members = [
{
role = "roles/pubsub.subscriber"
member = "group:[email protected]"
},
{
role = "roles/pubsub.viewer"
member = "serviceAccount:[email protected]"
}
]
pull_subscription_iam_binding = true
pull_subscription_roles_members = [
{
role = "roles/pubsub.subscriber"
member = "group:[email protected]"
},
{
role = "roles/pubsub.viewer"
member = "serviceAccount:[email protected]"
}
]
push_subscription_iam_binding = true
push_subscription_roles_members = [
{
role = "roles/pubsub.subscriber"
member = "group:[email protected]"
},
{
role = "roles/pubsub.viewer"
member = "serviceAccount:[email protected]"
}
]
pull_subscriptions = [
{
name = "pull"
ack_deadline_seconds = 10
enable_exactly_once_delivery = true
},
]
push_subscriptions = [
{
name = "push"
push_endpoint = ""
x-goog-version = "v1beta1"
ack_deadline_seconds = 20
expiration_policy = "1209600s"
},
]
}
```