Skip to content

Commit 604b984

Browse files
committed
Add to 1.14 and add the redirects
1 parent 3447e09 commit 604b984

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+6800
-1452
lines changed

content/terraform-docs-common/redirects.jsonc

Lines changed: 79 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,16 +353,16 @@
353353
"source": "/terraform/language/v:version((?:1\\.(?:1[2-9]|[2-9]\\d)|[2-9]\\d*\\.\\d+)\\.x)/resources/behavior",
354354
"destination": "/terraform/language/v:version/resources",
355355
"permanent": true
356-
},
356+
},
357357
// Refactor provisioners
358358
{
359359
"source": "/terraform/language/resources/provisioners/null_resource",
360-
"destination": "/terraform/language/provisioners#run-provisioners-without-a-resource",
360+
"destination": "/terraform/language/provisioners#run-provisioners-without-a-resource",
361361
"permanent": true
362362
},
363363
{
364364
"source": "/terraform/language/resources/provisioners/:slug((?!null_resource$).*)",
365-
"destination": "/terraform/language/provisioners",
365+
"destination": "/terraform/language/provisioners",
366366
"permanent": true
367367
},
368368
// Provisioners content pre PR-530 (anything 1.11 and older)
@@ -659,5 +659,81 @@
659659
"source": "/terraform/cloud-docs/migrate/tf-migrate/reference/configuration",
660660
"destination": "/terraform/migrate/reference/configuration",
661661
"permanent": true
662+
},
663+
{
664+
"source": "/terraform/language/stacks/create/config",
665+
"destination": "/terraform/language/stacks/component/config",
666+
"permanent": true
667+
},
668+
{
669+
"source": "/terraform/language/v:version(1\\.(?:9|1[0-2])\\.x)/stacks/component/config",
670+
"destination": "/terraform/language/v:version/stacks/create/config",
671+
"permanent": true
672+
},
673+
{
674+
"source": "/terraform/language/v:version((?:1\\.(?:1[3-9]|[2-9]\\d)|[2-9]\\d*\\.\\d+)\\.x)/stacks/create/config",
675+
"destination": "/terraform/language/v:version/stacks/component/config",
676+
"permanent": true
677+
},
678+
{
679+
"source": "/terraform/language/stacks/create/declare-providers",
680+
"destination": "/terraform/language/stacks/component/declare-providers",
681+
"permanent": true
682+
},
683+
{
684+
"source": "/terraform/language/v:version(1\\.(?:9|1[0-2])\\.x)/stacks/component/declare-providers",
685+
"destination": "/terraform/language/v:version/stacks/create/declare-providers",
686+
"permanent": true
687+
},
688+
{
689+
"source": "/terraform/language/v:version((?:1\\.(?:1[3-9]|[2-9]\\d)|[2-9]\\d*\\.\\d+)\\.x)/stacks/create/declare-providers",
690+
"destination": "/terraform/language/v:version/stacks/component/declare-providers",
691+
"permanent": true
692+
},
693+
{
694+
"source": "/terraform/language/stacks/reference/tfstack",
695+
"destination": "/terraform/language/block/stack/component_configuration",
696+
"permanent": true
697+
},
698+
{
699+
"source": "/terraform/language/v:version(1\\.(?:9|1[0-2])\\.x)/block/stack/component_configuration",
700+
"destination": "/terraform/language/v:version/stacks/reference/tfstack",
701+
"permanent": true
702+
},
703+
{
704+
"source": "/terraform/language/v:version((?:1\\.(?:1[3-9]|[2-9]\\d)|[2-9]\\d*\\.\\d+)\\.x)/stacks/reference/tfstack",
705+
"destination": "/terraform/language/v:version/block/stack/component_configuration",
706+
"permanent": true
707+
},
708+
{
709+
"source": "/terraform/language/stacks/reference/tfdeploy",
710+
"destination": "/terraform/language/block/stack/deploy",
711+
"permanent": true
712+
},
713+
{
714+
"source": "/terraform/language/v:version(1\\.(?:9|1[0-2])\\.x)/block/stack/deploy",
715+
"destination": "/terraform/language/v:version/stacks/reference/tfdeploy",
716+
"permanent": true
717+
},
718+
{
719+
"source": "/terraform/language/v:version((?:1\\.(?:1[3-9]|[2-9]\\d)|[2-9]\\d*\\.\\d+)\\.x)/stacks/reference/tfdeploy",
720+
"destination": "/terraform/language/v:version/block/stack/deploy",
721+
"permanent": true
722+
},
723+
724+
{
725+
"source": "/terraform/language/stacks/reference/tfstacks-cli",
726+
"destination": "/terraform/cli/commands/stacks",
727+
"permanent": true
728+
},
729+
{
730+
"source": "/terraform/cli/v:version(1\\.(?:9|1[0-2])\\.x)/commands/stacks",
731+
"destination": "/terraform/language/v:version/stacks/reference/tfstacks-cli",
732+
"permanent": true
733+
},
734+
{
735+
"source": "/terraform/language/v:version((?:1\\.(?:1[3-9]|[2-9]\\d)|[2-9]\\d*\\.\\d+)\\.x)/stacks/reference/tfstacks-cli",
736+
"destination": "/terraform/cli/v:version/commands/stacks",
737+
"permanent": true
662738
}
663739
]

content/terraform/v1.13.x/data/cli-nav-data.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,51 @@
145145
]
146146
}
147147
]
148+
},
149+
{
150+
"title": "Manage Stacks",
151+
"routes": [
152+
153+
{ "title": "Overview", "href": "/cli/commands/stacks" },
154+
{ "title": "Global Flags", "href": "/cli/commands/stacks/global-flags" },
155+
{ "title": "<code>create</code>", "href": "/cli/commands/stacks/create" },
156+
{ "title": "<code>fmt</code>", "href": "/cli/commands/stacks/fmt" },
157+
{ "title": "<code>init</code>", "href": "/cli/commands/stacks/init" },
158+
{ "title": "<code>list</code>", "href": "/cli/commands/stacks/list" },
159+
{ "title": "<code>providers-lock</code>", "href": "/cli/commands/stacks/providers-lock" },
160+
{ "title": "<code>validate</code>", "href": "/cli/commands/stacks/validate" },
161+
{ "title": "<code>version</code>", "href": "/cli/commands/stacks/version" },
162+
{
163+
"title": "Configuration",
164+
"routes": [
165+
{ "title": "Overview", "href": "/cli/commands/stacks/configuration" },
166+
{ "title": "<code>configuration fetch</code>", "href": "/cli/commands/stacks/configuration/fetch" },
167+
{ "title": "<code>configuration list</code>", "href": "/cli/commands/stacks/configuration/list" },
168+
{ "title": "<code>configuration upload</code>", "href": "/cli/commands/stacks/configuration/upload" },
169+
{ "title": "<code>configuration watch</code>", "href": "/cli/commands/stacks/configuration/watch" }
170+
]
171+
},
172+
{
173+
"title": "Deployment Group",
174+
"routes": [
175+
{ "title": "Overview", "href": "/cli/commands/stacks/deployment-group" },
176+
{ "title": "<code>deployment-group approve-all-plans</code>", "href": "/cli/commands/stacks/deployment-group/approve-all-plans" },
177+
{ "title": "<code>deployment-group list</code>", "href": "/cli/commands/stacks/deployment-group/list" },
178+
{ "title": "<code>deployment-group rerun</code>", "href": "/cli/commands/stacks/deployment-group/rerun" },
179+
{ "title": "<code>deployment-group watch</code>", "href": "/cli/commands/stacks/deployment-group/watch" }
180+
]
181+
},
182+
{
183+
"title": "Deployment Run",
184+
"routes": [
185+
{ "title": "Overview", "href": "/cli/commands/stacks/deployment-run" },
186+
{ "title": "deployment-run approve-all-plans", "href": "/cli/commands/stacks/deployment-run/approve-all-plans" },
187+
{ "title": "deployment-run cancel", "href": "/cli/commands/stacks/deployment-run/cancel" },
188+
{ "title": "deployment-run list", "href": "/cli/commands/stacks/deployment-run/list" },
189+
{ "title": "deployment-run watch", "href": "/cli/commands/stacks/deployment-run/watch" }
190+
]
191+
}
192+
]
148193
},
149194
{
150195
"title": "Managing Workspaces",
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
page_title: terraform stacks configuration fetch command
3+
description: The terraform stacks configuration fetch command fetches the latest configuration from VCS.
4+
---
5+
6+
# `terraform stacks configuration fetch` reference
7+
8+
Use the `terraform stacks configuration fetch` command to fetch the latest Stack configuration from VCS.
9+
10+
## Usage
11+
12+
```shell-session
13+
$ terraform stacks <global-stacks-flags> configuration fetch <options>
14+
```
15+
16+
## Description
17+
18+
The `terraform stacks configuration fetch` command retrieves the latest configuration from a version control system (VCS) for a Stack connected to a VCS repository. You can identify the target Stack either by providing a Stack ID directly, or by specifying the organization name, project name, and Stack name combination.
19+
20+
21+
## Options
22+
23+
- `-organization-name`: The name of the organization to target.
24+
- Optional when using `-stack-id`, required when using name-based targeting.
25+
- String data type.
26+
- Overrides the ENV VAR `TF_STACKS_ORGANIZATION_NAME` if provided.
27+
- `-project-name`: The name of the project to target.
28+
- Optional when using `-stack-id`, required when using name-based targeting.
29+
- String data type.
30+
- Overrides the ENV VAR `TF_STACKS_PROJECT_NAME` if provided.
31+
- `-stack-name`: The name of the stack to target.
32+
- Optional when using `-stack-id`, required when using name-based targeting.
33+
- String data type.
34+
- Overrides the ENV VAR `TF_STACKS_STACK_NAME` if provided.
35+
- `-stack-id`: The ID of the stack to fetch for.
36+
- Optional (but required if not using `-stack-name`).
37+
- String data type.
38+
- Has precedence over the `-stack-name` if both are provided.
39+
- `-json`: Output results in JSON format.
40+
- Optional.
41+
- Boolean flag.
42+
- Default is false (human-readable output).
43+
44+
## Examples
45+
46+
The following command fetches configuration for a Stack using organization, project, and Stack names:
47+
48+
```shell-session
49+
$ terraform stacks configuration fetch -organization-name my-org -project-name my-project -stack-name my-stack
50+
```
51+
52+
The following command fetches configuration for a Stack using the Stack ID:
53+
54+
```shell-session
55+
$ terraform stacks configuration fetch -stack-id stack-abc123def456
56+
```
57+
58+
The following command fetches configuration and outputs the result in JSON format:
59+
60+
```shell-session
61+
$ terraform stacks configuration fetch -stack-id stack-abc123def456 -json
62+
```
63+
64+
## Global flags
65+
66+
Refer to [Global flags reference](/terraform/cli/commands/stacks/global-flags) for information about flags you can use with all commands.
67+
68+
## Related
69+
70+
- [Terraform Stacks CLI reference](/terraform/cli/commands/stacks)
71+
- [terraform stacks configuration reference](/terraform/cli/commands/stacks/configuration)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
page_title: terraform stacks configuration command
3+
description: The terraform stacks configuration command manages stack configurations.
4+
---
5+
6+
# `terraform stacks configuration` reference
7+
8+
Use the `terraform stacks configuration` command to manage Stack configurations including listing, uploading, fetching, and monitoring.
9+
10+
## Description
11+
12+
The `terraform stacks configuration` command provides subcommands for managing Stack configurations. You can list configurations associated with a Stack, upload local configurations, fetch the latest configuration from VCS sources, and watch configuration progress.
13+
14+
## Usage
15+
16+
```
17+
terraform stacks <global-stacks-flags> configuration <subcommand>
18+
```
19+
20+
## Subcommands
21+
22+
- [`list`](/terraform/cli/commands/stacks/configuration/list) - List configurations associated with the given stack.
23+
- [`upload`](/terraform/cli/commands/stacks/configuration/upload) - Upload the stack configuration in the current working directory.
24+
- [`fetch`](/terraform/cli/commands/stacks/configuration/fetch) - Fetch the latest stack configuration from the VCS source.
25+
- [`watch`](/terraform/cli/commands/stacks/configuration/watch) - Watch the progress of a configuration.
26+
27+
## Global flags
28+
29+
Refer to [Global flags reference](/terraform/cli/commands/stacks/global-flags) for information about flags you can use with all commands.
30+
31+
## Related
32+
33+
- [Terraform Stacks CLI reference](/terraform/cli/commands/stacks)
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
page_title: terraform stacks configuration list
3+
description: The terraform stacks configuration list command lists configurations associated with a given Stack.
4+
---
5+
6+
# `terraform stacks configuration list` reference
7+
8+
Use the `terraform stacks configuration list` command to list configuration versions associated with a given Stack.
9+
10+
## Usage
11+
12+
```shell-session
13+
$ terraform stacks <global-stacks-flags> configuration list <options>
14+
```
15+
16+
## Description
17+
18+
The `terraform stacks configuration list` command lists Stack configurations associated with a given Stack. You must provide either a Stack ID or the combination of organization name, project name, and Stack name to identify the target Stack.
19+
20+
## Options
21+
22+
- `-organization-name`: The name of the organization to target.
23+
- Optional when using `-stack-id`, required when using name-based targeting.
24+
- String data type.
25+
- Overrides the `TF_STACKS_ORGANIZATION_NAME` environment variable if provided.
26+
- `-project-name`: The name of the project to target.
27+
- Optional when using `-stack-id`, required when using name-based targeting.
28+
- String data type.
29+
- Overrides the `TF_STACKS_PROJECT_NAME` environment variable if provided.
30+
- `-stack-name`: The name of the Stack to target.
31+
- Optional when using `-stack-id`, required when using name-based targeting.
32+
- String data type.
33+
- Overrides the `TF_STACKS_STACK_NAME` environment variable if provided.
34+
- `-stack-id`: The ID of the Stack to list configurations for.
35+
- Optional (but required if not using `-stack-name`).
36+
- String data type.
37+
- Has precedence over the `-stack-name` option if both are provided.
38+
- `-json`: Output results in JSON format instead of the default human-readable text format.
39+
- Optional.
40+
- Boolean flag.
41+
42+
## Examples
43+
44+
The following command lists configurations for a Stack using organization, project, and Stack names:
45+
46+
```shell-session
47+
$ terraform stacks configuration list -organization-name my-org -project-name my-project -stack-name my-stack
48+
```
49+
50+
The following command lists configurations using a Stack ID with JSON output:
51+
52+
```shell-session
53+
$ terraform stacks configuration list -stack-id stack-abc123 -json
54+
```
55+
56+
## Global flags
57+
58+
Refer to [Global flags reference](/terraform/cli/commands/stacks/global-flags) for information about flags you can use with all commands.
59+
60+
## Related
61+
62+
- [Terraform Stacks CLI reference](/terraform/cli/commands/stacks)
63+
- [terraform stacks configuration reference](/terraform/cli/commands/stacks/configuration)

0 commit comments

Comments
 (0)