Skip to content

Commit

Permalink
Merge branch 'master' into fix/update-mods
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored Nov 1, 2023
2 parents 0a30c29 + 667c4b8 commit b97707c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Then perform the following commands on the root folder:
| region | The region in which resources will be applied. | `string` | n/a | yes |
| scheduler\_job | An existing Cloud Scheduler job instance | `object({ name = string })` | `null` | no |
| time\_zone | The timezone to use in scheduler | `string` | `"Etc/UTC"` | no |
| topic\_kms\_key\_name | The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic. | `string` | `null` | no |
| topic\_labels | A set of key/value label pairs to assign to the pubsub topic. | `map(string)` | `{}` | no |
| topic\_name | Name of pubsub topic connecting the scheduled job and the function | `string` | `"test-topic"` | no |
| vpc\_connector | The VPC Network Connector that this cloud function can connect to. It should be set up as fully-qualified URI. The format of this field is projects//locations//connectors/*. | `string` | `null` | no |
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module "pubsub_topic" {
create_topic = var.scheduler_job == null ? true : false
grant_token_creator = var.grant_token_creator
topic_labels = var.topic_labels
topic_kms_key_name = var.topic_kms_key_name
}

/******************************************
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ variable "topic_labels" {
default = {}
}

variable "topic_kms_key_name" {
type = string
description = "The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic."
default = null
}

variable "message_data" {
type = string
description = "The data to send in the topic message."
Expand Down

0 comments on commit b97707c

Please sign in to comment.