diff --git a/main.tf b/main.tf index 7026740..3caf072 100644 --- a/main.tf +++ b/main.tf @@ -16,6 +16,11 @@ resource "tfe_workspace" "workspace" { speculative_enabled = var.speculative_enabled tag_names = var.tag_names + trigger_patterns = [ + "${each.value}/*", + "modules/**/*", + ] + vcs_repo { identifier = local.vcs_identifier github_app_installation_id = var.github_app_installation_id diff --git a/variables.tf b/variables.tf index 5fd4851..c2efc48 100644 --- a/variables.tf +++ b/variables.tf @@ -114,3 +114,9 @@ variable "TFC_WORKSPACE_NAME" { type = string default = null } + +variable "project_id" { + description = "ID of the project where the workspace should be created." + type = string + default = null +} \ No newline at end of file