在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):terraform-google-modules/terraform-google-pubsub开源软件地址(OpenSource Url):https://github.com/terraform-google-modules/terraform-google-pubsub开源编程语言(OpenSource Language):HCL 77.0%开源软件介绍(OpenSource Introduction):terraform-google-pubsubThis module makes it easy to create Google Cloud Pub/Sub topic and subscriptions associated with the topic. CompatibilityThis module is meant for use with Terraform 0.13+ and tested using Terraform 1.0+. If you find incompatibilities using Terraform >=0.13, please open an issue. If you haven't upgraded and need a Terraform 0.12.x-compatible version of this module, the last released version intended for Terraform 0.12.x is v1.9.0. UsageThis is a simple usage of the module. Please see also a simple setup provided in the example directory. module "pubsub" {
source = "terraform-google-modules/pubsub/google"
version = "~> 1.8"
topic = "tf-topic"
project_id = "my-pubsub-project"
push_subscriptions = [
{
name = "push" // required
ack_deadline_seconds = 20 // optional
push_endpoint = "https://example.com" // required
x-goog-version = "v1beta1" // optional
oidc_service_account_email = "[email protected]" // optional
audience = "example" // optional
expiration_policy = "1209600s" // optional
dead_letter_topic = "projects/my-pubsub-project/topics/example-dl-topic" // optional
max_delivery_attempts = 5 // optional
maximum_backoff = "600s" // optional
minimum_backoff = "300s" // optional
filter = "attributes.domain = \"com\"" // optional
enable_message_ordering = true // optional
}
]
pull_subscriptions = [
{
name = "pull" // required
ack_deadline_seconds = 20 // optional
dead_letter_topic = "projects/my-pubsub-project/topics/example-dl-topic" // optional
max_delivery_attempts = 5 // optional
maximum_backoff = "600s" // optional
minimum_backoff = "300s" // optional
filter = "attributes.domain = \"com\"" // optional
enable_message_ordering = true // optional
service_account = "[email protected]" // optional
}
]
} Inputs
Outputs
RequirementsInstallation Dependencies
Configure a Service AccountIn order to execute this module you must have a Service Account with the following: Roles
Enable APIsIn order to operate with the Service Account you must activate the following APIs on the project where the Service Account was created:
Service Account CredentialsYou can pass the service account credentials into this module by setting the following environment variables:
See more details. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论