Skip to content

Commit 1f76a18

Browse files
committed
SCALRCORE-33565 BE > Terragrunt > Add ability to use TERRAGRUNT_INCLUDE_EXTERNAL_DEPENDENCIES variable
1 parent 7a03e5a commit 1f76a18

File tree

3 files changed

+28
-17
lines changed

3 files changed

+28
-17
lines changed

docs/data-sources/workspace.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ data "scalr_workspace" "example2" {
6161
- `vcs_provider_id` (String) The identifier of a VCS provider in the format `vcs-<RANDOM STRING>`.
6262
- `vcs_repo` (List of Object) If a workspace is linked to a VCS repository this block shows the details, otherwise `{}` (see [below for nested schema](#nestedatt--vcs_repo))
6363
- `working_directory` (String) A relative path that Terraform will execute within.
64-
- `terragrunt` (List of Object) If a workspace is using Terragrunt this block shows the details, otherwise `{}` (see [below for nested schema](#nestedatt--terragrunt))"
64+
- `terragrunt` (List of Object) If a workspace is linked to a Terragrunt configuration this block shows the details, otherwise `{}` (see [below for nested schema](#nestedatt--terragrunt))
6565

6666
<a id="nestedatt--created_by"></a>
6767
### Nested Schema for `created_by`
@@ -95,11 +95,12 @@ Read-Only:
9595
- `ingress_submodules` (Boolean) Designates whether to clone git submodules of the VCS repository.
9696
- `path` (String) Path within the repo, if any.
9797

98+
9899
<a id="nestedatt--terragrunt"></a>
99100
### Nested Schema for `terragrunt`
100101

101102
Read-Only:
102103

103104
- `version` (String) The version of Terragrunt used for this workspace.
104-
- `use_run_all` (Boolean) Boolean indicates if Terragrunt will use the `run-all` command.
105+
- `use_run_all` (Boolean) Boolean indicates if Terragrunt will use `run-all` command.
105106
- `include_external_dependencies` (Boolean) Boolean indicates if Terragrunt will include external dependencies.

docs/resources/workspace.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ resource "scalr_workspace" "example-b" {
168168
- `ssh_key_id` (String) The identifier of the SSH key to use for the workspace.
169169
- `tag_ids` (Set of String) List of tag IDs associated with the workspace.
170170
- `terraform_version` (String) The version of Terraform to use for this workspace. Defaults to the latest available version.
171+
- `terragrunt` (Block List) Settings for the workspace's Terragrunt configuration. (see [below for nested schema](#nestedblock--terragrunt))
171172
- `type` (String) The type of the Scalr Workspace environment, available options: `production`, `staging`, `testing`, `development`, `unmapped`.
172173
- `var_files` (List of String) A list of paths to the `.tfvars` file(s) to be used as part of the workspace configuration.
173174
- `vcs_provider_id` (String) ID of VCS provider - required if vcs-repo present and vice versa, in the format `vcs-<RANDOM STRING>`.
174175
- `vcs_repo` (Block List) Settings for the workspace's VCS repository. (see [below for nested schema](#nestedblock--vcs_repo))
175176
- `working_directory` (String) A relative path that Terraform will be run in. Defaults to the root of the repository `""`.
176-
- `terragrunt` (Block List) Settings for the workspace's Terragrunt configuration. (see [below for nested schema](#nestedblock--terragrunt))
177177

178178
### Read-Only
179179

@@ -205,6 +205,19 @@ Optional:
205205
- `alias` (String) The alias of provider configuration.
206206

207207

208+
<a id="nestedblock--terragrunt"></a>
209+
### Nested Schema for `terragrunt`
210+
211+
Required:
212+
213+
- `version` (String) The version of Terragrunt the workspace performs runs on.
214+
215+
Optional:
216+
217+
- `include_external_dependencies` (Boolean) Indicates whether the workspace includes external dependencies.
218+
- `use_run_all` (Boolean) Indicates whether the workspace uses `terragrunt run-all`.
219+
220+
208221
<a id="nestedblock--vcs_repo"></a>
209222
### Nested Schema for `vcs_repo`
210223

@@ -231,18 +244,6 @@ Read-Only:
231244
- `full_name` (String)
232245
- `username` (String)
233246

234-
<a id="nestedblock--terragrunt"></a>
235-
### Nested Schema for `terragrunt`
236-
237-
Required:
238-
239-
- `version` (String) The version of Terragrunt used for this workspace.
240-
241-
Optional:
242-
243-
- `use_run_all` (Boolean) Boolean indicates if Terragrunt will use the `run-all` command. Default `false`.
244-
- `include_external_dependencies` (Boolean) Boolean indicates if Terragrunt will include external dependencies. Default `false`.
245-
246247
## Import
247248

248249
Import is supported using the following syntax:

templates/data-sources/workspace.md.tmpl

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ hidden: false
5252
- `vcs_provider_id` (String) The identifier of a VCS provider in the format `vcs-<RANDOM STRING>`.
5353
- `vcs_repo` (List of Object) If a workspace is linked to a VCS repository this block shows the details, otherwise `{}` (see [below for nested schema](#nestedatt--vcs_repo))
5454
- `working_directory` (String) A relative path that Terraform will execute within.
55-
- `terragrunt_version` (String) The version of Terragrunt the workspace performs runs on.
56-
- `terragrunt_use_run_all` (Boolean) Indicates whether the workspace uses `terragrunt run-all`.
55+
- `terragrunt` (List of Object) If a workspace is linked to a Terragrunt configuration this block shows the details, otherwise `{}` (see [below for nested schema](#nestedatt--terragrunt))
5756

5857
<a id="nestedatt--created_by"></a>
5958
### Nested Schema for `created_by`
@@ -86,3 +85,13 @@ Read-Only:
8685
- `identifier` (String) The reference to the VCS repository in the format `:org/:repo`, this refers to the organization and repository in your VCS provider.
8786
- `ingress_submodules` (Boolean) Designates whether to clone git submodules of the VCS repository.
8887
- `path` (String) Path within the repo, if any.
88+
89+
90+
<a id="nestedatt--terragrunt"></a>
91+
### Nested Schema for `terragrunt`
92+
93+
Read-Only:
94+
95+
- `version` (String) The version of Terragrunt used for this workspace.
96+
- `use_run_all` (Boolean) Boolean indicates if Terragrunt will use `run-all` command.
97+
- `include_external_dependencies` (Boolean) Boolean indicates if Terragrunt will include external dependencies.

0 commit comments

Comments
 (0)