Skip to content

Commit 0a3dfc1

Browse files
committed
Add more documentation
1 parent 1c4f7fd commit 0a3dfc1

File tree

81 files changed

+1513
-235
lines changed

Some content is hidden

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

81 files changed

+1513
-235
lines changed

.github/_bak/issue-comment-triage.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Copyright (c) HashiCorp, Inc.
21

32
# DO NOT EDIT - This GitHub Workflow is managed by automation
43
# https://github.com/hashicorp/terraform-devex-repos

.github/_bak/lock.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Copyright (c) HashiCorp, Inc.
21

32
# DO NOT EDIT - This GitHub Workflow is managed by automation
43
# https://github.com/hashicorp/terraform-devex-repos

.github/_bak/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Copyright (c) HashiCorp, Inc.
21

32
# # Terraform Provider testing workflow.
43
# name: Tests

.goreleaser.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Copyright (c) HashiCorp, Inc.
21

32
# Visit https://goreleaser.com for documentation on how to customize this
43
# behavior.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "snapcd_azure_key_vault_secret Data Source - snapcd"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# snapcd_azure_key_vault_secret (Data Source)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `name` (String)
21+
22+
### Read-Only
23+
24+
- `id` (String) The ID of this resource.
25+
- `remote_secret_name` (String)
26+
- `secret_store_id` (String)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "snapcd_azure_key_vault_secret_scoped_to_module Data Source - snapcd"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# snapcd_azure_key_vault_secret_scoped_to_module (Data Source)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `module_id` (String)
21+
- `name` (String)
22+
23+
### Read-Only
24+
25+
- `id` (String) The ID of this resource.
26+
- `remote_secret_name` (String)
27+
- `secret_store_id` (String)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "snapcd_azure_key_vault_secret_scoped_to_namespace Data Source - snapcd"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# snapcd_azure_key_vault_secret_scoped_to_namespace (Data Source)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `name` (String)
21+
- `namespace_id` (String)
22+
23+
### Read-Only
24+
25+
- `id` (String) The ID of this resource.
26+
- `remote_secret_name` (String)
27+
- `secret_store_id` (String)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "snapcd_azure_key_vault_secret_scoped_to_stack Data Source - snapcd"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# snapcd_azure_key_vault_secret_scoped_to_stack (Data Source)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `name` (String)
21+
- `stack_id` (String)
22+
23+
### Read-Only
24+
25+
- `id` (String) The ID of this resource.
26+
- `remote_secret_name` (String)
27+
- `secret_store_id` (String)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "snapcd_azure_key_vault_secret_store Data Source - snapcd"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# snapcd_azure_key_vault_secret_store (Data Source)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `name` (String)
21+
22+
### Read-Only
23+
24+
- `id` (String) The ID of this resource.
25+
- `is_globally_assigned` (Boolean)
26+
- `key_vault_url` (String)

docs/data-sources/module.md

Lines changed: 39 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,47 @@ description: |-
1717

1818
### Required
1919

20-
- `name` (String)
21-
- `namespace_id` (String)
20+
- `name` (String) Name of the Module. Must be unique in combination with `namespace_id`.
21+
- `namespace_id` (String) ID of the Module's parent Namespace.
2222

2323
### Read-Only
2424

25-
- `apply_after_hook` (String)
26-
- `apply_before_hook` (String)
27-
- `depends_on_modules` (List of String)
28-
- `destroy_after_hook` (String)
29-
- `destroy_before_hook` (String)
30-
- `engine` (String)
31-
- `id` (String) The ID of this resource.
32-
- `init_after_hook` (String)
33-
- `init_backend_args` (String)
34-
- `init_before_hook` (String)
35-
- `module_cache_enabled` (Boolean)
36-
- `output_after_hook` (String)
37-
- `output_before_hook` (String)
38-
- `plan_after_hook` (String)
39-
- `plan_before_hook` (String)
40-
- `plan_destroy_after_hook` (String)
41-
- `plan_destroy_before_hook` (String)
42-
- `provider_cache_enabled` (Boolean)
43-
- `runner_pool_id` (String)
25+
- `apply_after_hook` (String) Shell script that should be executed after the 'Apply' step of any deployment is run. Setting this will override any default value set on the Module's parent Namespace.
26+
- `apply_before_hook` (String) Shell script that should be executed before the 'Apply' step of any deployment is run. Setting this will override any default value set on the Module's parent Namespace.
27+
- `depends_on_modules` (List of String) A list on Snap CD Modules that this Module depends on. Note that Snap CD will automatically discover depedencies based on the Module using as inputs the outputs from another Module, so use `depends_on_modules` where you want to explicitly establish a dependency where outputs are not referenced as inputs.
28+
- `destroy_after_hook` (String) Shell script that should be executed after the 'Destroy' step of any deployment is run. Setting this will override any default value set on the Module's parent Namespace.
29+
- `destroy_before_hook` (String) Shell script that should be executed before the 'Destroy' step of any deployment is run. Setting this will override any default value set on the Module's parent Namespace.
30+
- `engine` (String) Determines which binary will be used during deployment. Setting this to 'OpenTofu' will use `tofu`. Setting it to 'Terraform' will use `terraform`. Setting this will override any default value set on the Module's parent Namespace.
31+
- `id` (String) Unique ID of the Module.
32+
- `init_after_hook` (String) Shell script that should be executed after the 'Init' step of any deployment is run.Setting this will override any default value set on the Module's parent Namespace.
33+
- `init_backend_args` (String) Arguments to pass to the 'init' command in order to set the backend. This should be a text block such as:
34+
35+
```
36+
init_backend_args = <<EOT
37+
-backend-config="storage_account_name=somestorageaccount" \
38+
-backend-config="container_name=terraform-states" \
39+
-backend-config="key=mystatefile.tfstate" \
40+
-backend-config="resource_group_name=someresourcegroup" \
41+
-backend-config="subscription_id=xxxx-xxx-xxx-xxx-xxxx" \
42+
-backend-config="tenant_id=zzzz-zzz-zzz-zzz-zzzzzz"
43+
EOT
44+
```
45+
46+
Setting this will override any default value set on the Module's parent Namespace.
47+
- `init_before_hook` (String) Shell script that should be executed before the 'Init' step of any deployment is run.Setting this will override any default value set on the Module's parent Namespace.
48+
- `output_after_hook` (String) Shell script that should be executed after the 'Output' step of any deployment is run. Setting this will override any default value set on the Module's parent Namespace.
49+
- `output_before_hook` (String) Shell script that should be executed before the 'Output' step of any deployment is run. Setting this will override any default value set on the Module's parent Namespace.
50+
- `output_secret_store_id` (String) The ID of the Secret Store that will be used to store this Module's outputs. Note that for an 'Output' step to successfully use this Secret Store, it must either be deployed as `is_globally_assigned=true`, or assigned via module/namespace/stack assignment. Setting this will override any default value set on the Module's parent Namespace.
51+
- `plan_after_hook` (String) Shell script that should be executed after the 'Plan' step of any deployment is run. Setting this will override any default value set on the Module's parent Namespace.
52+
- `plan_before_hook` (String) Shell script that should be executed before the 'Plan' step of any deployment is run. Setting this will override any default value set on the Module's parent Namespace.
53+
- `plan_destroy_after_hook` (String) Shell script that should be executed after the 'PlanDestroy' step of any deployment is run. Setting this will override any default value set on the Module's parent Namespace.
54+
- `plan_destroy_before_hook` (String) Shell script that should be executed before the 'PlanDestroy' step of any deployment is run. Setting this will override any default value set on the Module's parent Namespace.
55+
- `runner_pool_id` (String) ID of the Runner Pool that will receive the instructions when triggering a deployment on this Module.
4456
- `select_on` (String)
4557
- `select_strategy` (String)
46-
- `selected_consumer_id` (String)
47-
- `source_subdirectory` (String)
48-
- `source_revision` (String)
49-
- `source_url` (String)
58+
- `selected_consumer_id` (String) Name of the Runner to select (should unique identify the Runner within the Runner Pool). If null a random Runner will be selected from the Runner pool on every deployment.
59+
- `source_revision` (String) Remote revision (e.g. version number, branch, commit or tag) where the source module code is found.
60+
- `source_revision_type` (String) How Snap CD should interpret the `source_revision` field. Setting to 'Default' means Snap CD will interpret the revision type based on the source type (for example, for a 'Git' source type it will automatically figure out whether the `source_revision` refers to a branch, tag or commit). Currently no other approaches are supported.
61+
- `source_subdirectory` (String) Subdirectory where the source module code is found.
62+
- `source_type` (String) The type of remote module store that the source module code should be retrieved from.
63+
- `source_url` (String) Remote URL where the source module code is found.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "snapcd_module_env_var_from_secret Data Source - snapcd"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# snapcd_module_env_var_from_secret (Data Source)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `module_id` (String)
21+
- `name` (String)
22+
23+
### Read-Only
24+
25+
- `id` (String) The ID of this resource.
26+
- `secret_name` (String)
27+
- `secret_scope` (String)
28+
- `type` (String)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "snapcd_module_extra_file Data Source - snapcd"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# snapcd_module_extra_file (Data Source)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `file_name` (String)
21+
- `module_id` (String)
22+
23+
### Optional
24+
25+
- `overwrite` (Boolean)
26+
27+
### Read-Only
28+
29+
- `contents` (String)
30+
- `id` (String) The ID of this resource.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "snapcd_module_param_from_secret Data Source - snapcd"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# snapcd_module_param_from_secret (Data Source)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `module_id` (String)
21+
- `name` (String)
22+
23+
### Read-Only
24+
25+
- `id` (String) The ID of this resource.
26+
- `secret_name` (String)
27+
- `secret_scope` (String)
28+
- `type` (String)

docs/data-sources/namespace.md

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,39 @@ description: |-
1717

1818
### Required
1919

20-
- `name` (String)
21-
- `stack_id` (String)
20+
- `name` (String) Name of the Namespace. Must be unique in combination with `stack_id`.
21+
- `stack_id` (String) ID of the Namespace's parent Stack.
2222

2323
### Read-Only
2424

25-
- `default_apply_after_hook` (String)
26-
- `default_apply_before_hook` (String)
27-
- `default_destroy_after_hook` (String)
28-
- `default_destroy_before_hook` (String)
29-
- `default_engine` (String)
30-
- `default_init_after_hook` (String)
31-
- `default_init_backend_args` (String)
32-
- `default_init_before_hook` (String)
33-
- `default_module_cache_enabled` (Boolean)
34-
- `default_output_after_hook` (String)
35-
- `default_output_before_hook` (String)
36-
- `default_plan_after_hook` (String)
37-
- `default_plan_before_hook` (String)
38-
- `default_plan_destroy_after_hook` (String)
39-
- `default_plan_destroy_before_hook` (String)
40-
- `default_provider_cache_enabled` (Boolean)
25+
- `default_apply_after_hook` (String) Shell script that should be executed after the 'Apply' step of any deployment is run. All modules in this Namespace will use this value, unless explicitly overriden on the Module itself.
26+
- `default_apply_before_hook` (String) Shell script that should be executed before the 'Apply' step of any deployment is run. All modules in this Namespace will use this value, unless explicitly overriden on the Module itself.
27+
- `default_destroy_after_hook` (String) Shell script that should be executed after the 'Destroy' step of any deployment is run. All modules in this Namespace will use this value, unless explicitly overriden on the Module itself.
28+
- `default_destroy_before_hook` (String) Shell script that should be executed before the 'Destroy' step of any deployment is run. All modules in this Namespace will use this value, unless explicitly overriden on the Module itself.
29+
- `default_engine` (String) Determines which binary will be used during deployment. Setting this to 'OpenTofu' will use `tofu`. Setting it to 'Terraform' will use `terraform`. All modules in this Namespace will use this value, unless explicitly overriden on the Module itself.
30+
- `default_init_after_hook` (String) Shell script that should be executed after the 'Init' step of any deployment is run.All modules in this Namespace will use this value, unless explicitly overriden on the Module itself.
31+
- `default_init_backend_args` (String) Arguments to pass to the 'init' command in order to set the backend. This should be a text block such as:
32+
33+
```
34+
init_backend_args = <<EOT
35+
-backend-config="storage_account_name=somestorageaccount" \
36+
-backend-config="container_name=terraform-states" \
37+
-backend-config="key=mystatefile.tfstate" \
38+
-backend-config="resource_group_name=someresourcegroup" \
39+
-backend-config="subscription_id=xxxx-xxx-xxx-xxx-xxxx" \
40+
-backend-config="tenant_id=zzzz-zzz-zzz-zzz-zzzzzz"
41+
EOT
42+
```
43+
44+
All modules in this Namespace will use this value, unless explicitly overriden on the Module itself.
45+
- `default_init_before_hook` (String) Shell script that should be executed before the 'Init' step of any deployment is run.All modules in this Namespace will use this value, unless explicitly overriden on the Module itself.
46+
- `default_output_after_hook` (String) Shell script that should be executed after the 'Output' step of any deployment is run. All modules in this Namespace will use this value, unless explicitly overriden on the Module itself.
47+
- `default_output_before_hook` (String) Shell script that should be executed before the 'Output' step of any deployment is run. All modules in this Namespace will use this value, unless explicitly overriden on the Module itself.
48+
- `default_output_secret_store_id` (String) The ID of the Secret Store that will be used to store this Module's outputs. Note that for an 'Output' step to successfully use this Secret Store, it must either be deployed as `is_globally_assigned=true`, or assigned via module/namespace/stack assignment. All modules in this Namespace will use this value, unless explicitly overriden on the Module itself.
49+
- `default_plan_after_hook` (String) Shell script that should be executed after the 'Plan' step of any deployment is run. All modules in this Namespace will use this value, unless explicitly overriden on the Module itself.
50+
- `default_plan_before_hook` (String) Shell script that should be executed before the 'Plan' step of any deployment is run. All modules in this Namespace will use this value, unless explicitly overriden on the Module itself.
51+
- `default_plan_destroy_after_hook` (String) Shell script that should be executed after the 'PlanDestroy' step of any deployment is run. All modules in this Namespace will use this value, unless explicitly overriden on the Module itself.
52+
- `default_plan_destroy_before_hook` (String) Shell script that should be executed before the 'PlanDestroy' step of any deployment is run. All modules in this Namespace will use this value, unless explicitly overriden on the Module itself.
4153
- `default_select_on` (String)
4254
- `default_select_strategy` (String)
43-
- `default_source_revision` (String)
44-
- `default_source_url` (String)
45-
- `id` (String) The ID of this resource.
55+
- `id` (String) Unique ID of the Namespace

0 commit comments

Comments
 (0)