Skip to content

Commit

Permalink
Add topic_message_retention_duration property to pubsub_topics module (
Browse files Browse the repository at this point in the history
  • Loading branch information
victoriayexxx authored Jan 6, 2023
1 parent 3c7c873 commit edacaa4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/tfengine/schemas/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
| pubsub_topics.push_subscriptions.ack_deadline_seconds | Deadline to wait for acknowledgement. | integer | false | - | - |
| pubsub_topics.push_subscriptions.name | Name of subscription. | string | true | - | - |
| pubsub_topics.push_subscriptions.push_endpoint | Name of endpoint to push to. | string | false | - | - |
| pubsub_topics.topic_message_retention_duration | Message retention duration in seconds. | string | false | - | - |
| secrets | [Module](https://www.terraform.io/docs/providers/google/r/secret_manager_secret.html) | array() | false | - | - |
| secrets.resource_name | Override for Terraform resource name. If unset, defaults to normalized secret_id. Normalization will make all characters alphanumeric with underscores. | string | false | - | - |
| secrets.secret_data | Data of the secret. If unset, should be manually set in the GCP console. | string | false | - | - |
Expand Down
1 change: 1 addition & 0 deletions examples/tfengine/generated/team/project_data/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ module "topic" {
push_endpoint = "https://example.com"
},
]
topic_message_retention_duration = "86400s"
depends_on = [
module.project
]
Expand Down
1 change: 1 addition & 0 deletions examples/tfengine/modules/team.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ template "project_data" {
name = "pull-subscription"
}
]
topic_message_retention_duration = "86400s"
}]
}
terraform_addons = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module "{{resourceName . "name"}}" {

{{hclField . "pull_subscriptions" -}}
{{hclField . "push_subscriptions" -}}
{{hclField . "topic_message_retention_duration" -}}

depends_on = [
module.project
Expand Down
4 changes: 4 additions & 0 deletions templates/tfengine/recipes/resources.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,10 @@ schema = {
description = "Name of the topic."
type = "string"
}
topic_message_retention_duration = {
description = "Message retention duration in seconds."
type = "string"
}
labels = {
description = "Labels to set on the topic."
type = "object"
Expand Down

0 comments on commit edacaa4

Please sign in to comment.