Skip to content

Commit ce9a14e

Browse files
authored
feat: Add files_to_exclude_in_source_dir variable to exclude unwanted… (#259)
1 parent 7d64d76 commit ce9a14e

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

‎README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Then perform the following commands on the root folder:
4141
| bucket\_force\_destroy | When deleting the GCS bucket containing the cloud function, delete all objects in the bucket first. | `bool` | `true` | no |
4242
| bucket\_name | The name to apply to the bucket. Will default to a string of <project-id>-scheduled-function-XXXX> with XXXX being random characters. | `string` | `""` | no |
4343
| create\_bucket | Create bucket (default). Set to `false` to use existing one | `bool` | `true` | no |
44+
| files\_to\_exclude\_in\_source\_dir | Specify files to ignore when reading the source\_dir | `list(string)` | `[]` | no |
4445
| function\_available\_memory\_mb | The amount of memory in megabytes allotted for the function to use. | `number` | `256` | no |
4546
| function\_description | The description of the function. | `string` | `"Processes log export events provided through a Pub/Sub topic subscription."` | no |
4647
| function\_docker\_registry | Docker Registry to use for storing the function's Docker images. Allowed values are CONTAINER\_REGISTRY (default) and ARTIFACT\_REGISTRY. | `string` | `null` | no |

‎main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ module "main" {
8484
environment_variables = var.function_environment_variables
8585
secret_environment_variables = var.function_secret_environment_variables
8686
event_trigger_failure_policy_retry = var.function_event_trigger_failure_policy_retry
87+
files_to_exclude_in_source_dir = var.files_to_exclude_in_source_dir
8788
labels = var.function_labels
8889
service_account_email = var.function_service_account_email
8990
timeout_s = var.function_timeout_s

‎variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,3 +227,9 @@ variable "grant_token_creator" {
227227
description = "Specify true if you want to add token creator role to the default Pub/Sub SA"
228228
default = false
229229
}
230+
231+
variable "files_to_exclude_in_source_dir" {
232+
type = list(string)
233+
description = "Specify files to ignore when reading the source_dir"
234+
default = []
235+
}

0 commit comments

Comments
 (0)