You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: upgrade version and add new available attributes and resources #5 (#6)
* use latest stable versione of tfe provider, enforce initial stable version (>=1.0.0) of terraform cli
* handle notification_configuration resource of type "microsoft-teams"
* add assessment_enabled, trigger_patterns and force_delete attributes to tfe_workspace resource
* add "tags_regex" attribute in vcs_repo block of tfe_workspace_resource
| <aname="input_allow_destroy_plan"></a> [allow\_destroy\_plan](#input\_allow\_destroy\_plan)| (Optional) Whether destroy plans can be queued on the workspace |`bool`|`false`| no |
132
+
| <aname="input_assessments_enabled"></a> [assessments\_enabled](#input\_assessments\_enabled)| (Optional) Whether to regularly run health assessments such as drift detection on the workspace |`bool`|`false`| no |
131
133
| <aname="input_auto_apply"></a> [auto\_apply](#input\_auto\_apply)| (Optional) Whether to automatically apply changes when a Terraform plan is successful |`bool`|`false`| no |
132
134
| <aname="input_description"></a> [description](#input\_description)| (Optional) A description for the workspace |`string`|`""`| no |
133
135
| <aname="input_environment_sensitive_variables"></a> [environment\_sensitive\_variables](#input\_environment\_sensitive\_variables)| (Optional) Map of sensitive variables of 'environment' category used in the workspace<br><br> Item syntax:<br> {<br> variable1\_name = value1<br> variable2\_name = value2<br> ...<br> } |`map(any)`|`{}`| no |
134
136
| <aname="input_environment_variables"></a> [environment\_variables](#input\_environment\_variables)| (Optional) Map of variables of 'environment' category used in the workspace<br><br> Item syntax:<br> {<br> variable1\_name = value1<br> variable2\_name = value2<br> ...<br> } |`map(any)`|`{}`| no |
135
137
| <aname="input_execution_mode"></a> [execution\_mode](#input\_execution\_mode)| (Optional) Which execution mode to use |`string`|`"remote"`| no |
136
138
| <aname="input_file_triggers_enabled"></a> [file\_triggers\_enabled](#input\_file\_triggers\_enabled)| (Optional) Whether to filter runs based on the changed files in a VCS push |`bool`|`true`| no |
139
+
| <aname="input_force_delete"></a> [force\_delete](#input\_force\_delete)| (Optional) If this attribute is present on a workspace that is being deleted through the provider, it will use the existing force delete API. If this attribute is not present or false it will safe delete the workspace |`bool`|`false`| no |
137
140
| <aname="input_global_remote_state"></a> [global\_remote\_state](#input\_global\_remote\_state)| (Optional) Whether the workspace allows all workspaces in the organization to access its state data during runs |`bool`|`false`| no |
138
141
| <aname="input_name"></a> [name](#input\_name)| (Required) Name of the workspace |`string`| n/a | yes |
142
+
| <aname="input_notification_microsoft_teams_configuration"></a> [notification\_microsoft\_teams\_configuration](#input\_notification\_microsoft\_teams\_configuration)| (Optional) List of notification configuration of 'Microsoft Teams' type<br><br> Item syntax:<br> [<br> {<br> name = "webhook\_1"<br> enabled = true<br> url = "https://ms1234567890abcde.webhook.office.com"<br> triggers = [<br> "created",<br> "planning",<br> "needs\_attention",<br> "applying",<br> "completed",<br> "errored"<br> ]<br> },<br> {<br> name = "webhook\_2"<br> enabled = false<br> url = "https://ms0987654321edcba.webhook.office.com"<br> },<br> {<br> ...<br> }<br> ]| <pre>list(object({<br> name = string,<br> enabled = bool,<br> url = string,<br> triggers = list(string) #Optional<br> }))</pre> |`[]`| no |
139
143
| <aname="input_notification_slack_configuration"></a> [notification\_slack\_configuration](#input\_notification\_slack\_configuration)| (Optional) List of notification configuration of 'Slack' type<br><br> Item syntax:<br> [<br> {<br> name = "webhook\_1"<br> enabled = true<br> url = "https://hooks.slack.com/services/VeryLongHash1"<br> triggers = [<br> "created",<br> "planning",<br> "needs\_attention",<br> "applying",<br> "completed",<br> "errored"<br> ]<br> },<br> {<br> name = "webhook\_2"<br> enabled = false<br> url = "https://hooks.slack.com/services/VeryLongHash2"<br> },<br> {<br> ...<br> }<br> ]| <pre>list(object({<br> name = string,<br> enabled = bool,<br> url = string,<br> triggers = list(string) #Optional<br> }))</pre> |`[]`| no |
| <aname="input_oauth_token_id"></a> [oauth\_token\_id](#input\_oauth\_token\_id)| (Optional) The token ID of the VCS connection to use |`string`|`""`| no |
@@ -152,11 +156,13 @@ No modules.
152
156
| <aname="input_terraform_sensitive_variables"></a> [terraform\_sensitive\_variables](#input\_terraform\_sensitive\_variables)| (Optional) Map of sensitive variables of 'Terraform' category used in the workspace<br><br>Item syntax:<br>{<br> variable1\_name = value1<br> variable2\_name = value2<br> ...<br>} |`map(any)`|`{}`| no |
153
157
| <aname="input_terraform_variables"></a> [terraform\_variables](#input\_terraform\_variables)| (Optional) Map of variables of 'Terraform' category used in the workspace<br><br> Item syntax:<br> {<br> variable1\_name = value1<br> variable2\_name = value2<br> ...<br> } |`map(any)`|`{}`| no |
154
158
| <aname="input_terraform_version"></a> [terraform\_version](#input\_terraform\_version)| (Required) The version of Terraform to use for this workspace |`string`| n/a | yes |
155
-
| <aname="input_trigger_prefixes"></a> [trigger\_prefixes](#input\_trigger\_prefixes)| (Optional) List of repository-root-relative paths which describe all locations to be tracked for changes |`list(string)`|`[]`| no |
159
+
| <aname="input_trigger_patterns"></a> [trigger\_patterns](#input\_trigger\_patterns)| (Optional) List of glob patterns that describe the files Terraform Cloud monitors for changes. Trigger patterns are always appended to the root directory of the repository. Mutually exclusive with trigger-prefixes. Only available for Terraform Cloud |`list(string)`|`null`| no |
160
+
| <aname="input_trigger_prefixes"></a> [trigger\_prefixes](#input\_trigger\_prefixes)| (Optional) List of repository-root-relative paths which describe all locations to be tracked for changes |`list(string)`|`null`| no |
156
161
| <aname="input_variables_descriptions"></a> [variables\_descriptions](#input\_variables\_descriptions)| (Optional) Map of descriptions applied to workspace variables<br><br> Item syntax:<br> {<br> variable1\_name = "description"<br> variable2\_name = "description"<br> ...<br> } |`map(string)`|`{}`| no |
157
162
| <aname="input_vcs_repository_branch"></a> [vcs\_repository\_branch](#input\_vcs\_repository\_branch)| (Optional) The repository branch that Terraform will execute from |`string`|`""`| no |
158
163
| <aname="input_vcs_repository_identifier"></a> [vcs\_repository\_identifier](#input\_vcs\_repository\_identifier)| (Optional) A reference to your VCS repository in the format <organization>/<repository> where <organization> and <repository> refer to the organization and repository in your VCS provider. The format for Azure DevOps is //\_git/ |`string`|`""`| no |
159
164
| <aname="input_vcs_repository_ingress_submodules"></a> [vcs\_repository\_ingress\_submodules](#input\_vcs\_repository\_ingress\_submodules)| (Optional) Whether submodules should be fetched when cloning the VCS repository |`bool`|`false`| no |
165
+
| <aname="input_vcs_repository_tags_regex"></a> [vcs\_repository\_tags\_regex](#input\_vcs\_repository\_tags\_regex)| (Optional) (Optional) A regular expression used to trigger a Workspace run for matching Git tags. This option conflicts with trigger\_patterns and trigger\_prefixes. Should only set this value if the former is not being used |`string`|`null`| no |
160
166
| <aname="input_working_directory"></a> [working\_directory](#input\_working\_directory)| (Optional) A relative path that Terraform will execute within |`string`|`null`| no |
Copy file name to clipboardExpand all lines: variables.tf
+65-1Lines changed: 65 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,12 @@ variable "execution_mode" {
37
37
}
38
38
}
39
39
40
+
variable"assessments_enabled" {
41
+
description="(Optional) Whether to regularly run health assessments such as drift detection on the workspace"
42
+
type=bool
43
+
default=false
44
+
}
45
+
40
46
variable"file_triggers_enabled" {
41
47
description="(Optional) Whether to filter runs based on the changed files in a VCS push"
42
48
type=bool
@@ -87,7 +93,13 @@ variable "terraform_version" {
87
93
variable"trigger_prefixes" {
88
94
description="(Optional) List of repository-root-relative paths which describe all locations to be tracked for changes"
89
95
type=list(string)
90
-
default=[]
96
+
default=null
97
+
}
98
+
99
+
variable"trigger_patterns" {
100
+
description="(Optional) List of glob patterns that describe the files Terraform Cloud monitors for changes. Trigger patterns are always appended to the root directory of the repository. Mutually exclusive with trigger-prefixes. Only available for Terraform Cloud"
description="(Optional) If this attribute is present on a workspace that is being deleted through the provider, it will use the existing force delete API. If this attribute is not present or false it will safe delete the workspace"
119
+
type=bool
120
+
default=false
121
+
}
122
+
105
123
variable"vcs_repository_identifier" {
106
124
description="(Optional) A reference to your VCS repository in the format <organization>/<repository> where <organization> and <repository> refer to the organization and repository in your VCS provider. The format for Azure DevOps is //_git/"
107
125
type=string
@@ -126,6 +144,12 @@ variable "oauth_token_id" {
126
144
default=""
127
145
}
128
146
147
+
variable"vcs_repository_tags_regex" {
148
+
description="(Optional) (Optional) A regular expression used to trigger a Workspace run for matching Git tags. This option conflicts with trigger_patterns and trigger_prefixes. Should only set this value if the former is not being used"
149
+
type=string
150
+
default=null
151
+
}
152
+
129
153
variable"terraform_variables" {
130
154
description=<<EOF
131
155
(Optional) Map of variables of 'Terraform' category used in the workspace
0 commit comments