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
Copy file name to clipboardExpand all lines: website/docs/r/workspace.html.markdown
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,7 @@ The following arguments are supported:
68
68
*`assessments_enabled` - (Optional) Whether to regularly run health assessments such as drift detection on the workspace. Defaults to `false`.
69
69
*`auto_apply` - (Optional) Whether to automatically apply changes when a Terraform plan is successful. Defaults to `false`.
70
70
*`auto_apply_run_trigger` - (Optional) Whether to automatically apply changes for runs that were created by run triggers from another workspace. Defaults to `false`.
71
+
*`data_retention_policy` - (Optional) The workspace's [data retention policy](https://developer.hashicorp.com/terraform/enterprise/workspaces/settings/deletion#data-retention-policies).
71
72
*`description` - (Optional) A description for the workspace.
72
73
*`execution_mode` - (Optional) **Deprecated** Which [execution mode](https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings#execution-mode) to use. Use [tfe_workspace_settings](workspace_settings) instead.
73
74
*`file_triggers_enabled` - (Optional) Whether to filter runs based on the changed files
@@ -127,6 +128,10 @@ The following arguments are supported:
127
128
workflows, where runs are not driven by webhooks on your VCS provider.
128
129
*`working_directory` - (Optional) A relative path that Terraform will execute within. Defaults to the root of your repository.
129
130
131
+
The `data_retention_policy` block supports:
132
+
133
+
*`delete_older_than_n_days` - (Required) Automatically delete backing data for state versions and configuration versions older than N days.
134
+
130
135
The `vcs_repo` block supports:
131
136
132
137
*`identifier` - (Required) A reference to your VCS repository in the format
0 commit comments