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!: introduced provider config next to provider_meta config
Renamed seed_prefix to guid_seed_addition to clarify its purpose.
Renamed unique_seed to guid_seed to clarify that it needs to be globally unique per resource type.
Added per-resource-type uniqueness.
Copy file name to clipboardExpand all lines: docs/index.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,3 +14,13 @@ description: |-
14
14
15
15
<!-- schema generated by tfplugindocs -->
16
16
## Schema
17
+
18
+
### Optional
19
+
20
+
-`guid_seed_addition` (String) It serves as addition to each seed of any `value_is_fully_known` (resource) or `value_is_known` (resource) within the project if specified in provider, or within the same module if specified in provider-meta.
21
+
22
+
**Placeholders**:
23
+
- "{workdir}" (Keyword) The actual workdir; equals to terraform's path.root. This placeholder is
24
+
recommended because this value won't be dragged along the plan and apply phase in comparison to
25
+
"abspath(path.root)" that you would add to resource seed where a change to path.root would be
Copy file name to clipboardExpand all lines: docs/resources/is_fully_known.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,19 +5,19 @@ subcategory: ""
5
5
description: |-
6
6
Allows you to have a access to result during plan phase that states whether value or any nested attribute is marked as "(known after apply)" or not.
7
7
Provider Metadata
8
-
Each module can use provider_meta. Please keep in mind that these settings only count for resources of this module! (see https://www.terraform.io/internals/provider-meta):
9
-
terraform
10
-
// Terraform provider_meta example
11
-
terraform {
12
-
// "value" is the provider name
13
-
provider_meta "value" {
14
-
// {workdir} -> The only available placeholder currently (see below for more information)
15
-
seed_prefix = "{workdir}#for-example" // Results into "/path/to/workdir#for-example"
8
+
Each module can use providermeta. Please keep in mind that these settings only count for resources of this module! (see https://www.terraform.io/internals/provider-meta https://www.terraform.io/internals/provider-meta):
9
+
```terraform
10
+
// Terraform providermeta example
11
+
terraform {
12
+
// "value" is the provider name
13
+
providermeta "value" {
14
+
// {workdir} -> The only available placeholder currently (see below for more information)
15
+
guidseed_addition = "{workdir}#for-example" // Results into "/path/to/workdir#for-example"
16
+
}
16
17
}
17
-
}
18
-
18
+
```
19
19
Optional
20
-
seed_prefix (String) It gets appended to each seed of any value_is_fully_known (resource) or value_is_known (resource) within the same module.
20
+
guid_seed_addition (String) It serves as addition to each seed of any value_is_fully_known (resource) or value_is_known (resource) within the project if specified in provider, or within the same module if specified in provider-meta.
21
21
Placeholders:
22
22
"{workdir}" (Keyword) The actual workdir; equals to terraform's path.root. This placeholder is
23
23
recommended because this value won't be dragged along the plan and apply phase in comparison to
@@ -29,19 +29,19 @@ description: |-
29
29
30
30
Allows you to have a access to `result` during plan phase that states whether `value` or any nested attribute is marked as "(known after apply)" or not.
31
31
## Provider Metadata
32
-
Each module can use provider_meta. Please keep in mind that these settings only count for resources of this module! (see https://www.terraform.io/internals/provider-meta):
32
+
Each module can use provider_meta. Please keep in mind that these settings only count for resources of this module! (see [https://www.terraform.io/internals/provider-meta](https://www.terraform.io/internals/provider-meta)):
33
33
```terraform
34
34
// Terraform provider_meta example
35
-
terraform {
36
-
// "value" is the provider name
37
-
provider_meta "value" {
38
-
// {workdir} -> The only available placeholder currently (see below for more information)
39
-
seed_prefix = "{workdir}#for-example" // Results into "/path/to/workdir#for-example"
35
+
terraform {
36
+
// "value" is the provider name
37
+
provider_meta "value" {
38
+
// {workdir} -> The only available placeholder currently (see below for more information)
39
+
guid_seed_addition = "{workdir}#for-example" // Results into "/path/to/workdir#for-example"
40
+
}
40
41
}
41
-
}
42
42
```
43
43
### Optional
44
-
-`seed_prefix` (String) It gets appended to each seed of any `value_is_fully_known` (resource) or `value_is_known` (resource) within the same module.
44
+
-`guid_seed_addition` (String) It serves as addition to each seed of any `value_is_fully_known` (resource) or `value_is_known` (resource) within the project if specified in provider, or within the same module if specified in provider-meta.
45
45
46
46
**Placeholders**:
47
47
- "{workdir}" (Keyword) The actual workdir; equals to terraform's path.root. This placeholder is
@@ -56,8 +56,8 @@ terraform {
56
56
57
57
### Required
58
58
59
+
-`guid_seed` (String) Attention! The seed is being used to determine resource uniqueness prior (first plan phase) and during apply phase (second plan phase). Very important to state is that the **seed must be fully known during the plan phase**, otherwise, an error is thrown. Within one terraform plan & apply the **seed of every "value_is_fully_known" must be unique**! I really recommend you to use the provider configuration and/or provider_meta configuration to increase resource uniqueness. Besides `guid_seed`, the provider configuration seed, the provider_meta configuration seed and the resource type itself will become part of the final seed. Under certain circumstances you may face problems if you run terraform concurrenctly. If you do so, then I recommend you to pass-through a random value via a user (environment) variable that you then add to the seed.
59
60
-`proposed_unknown` (Dynamic) It is very crucial that this field is **not** filled by any custom value except the one produced by `value_unknown_proposer` (resource). This has the reason as its `value` is **always** unknown during the plan phase. On this behaviour this resource must rely and it cannot check if you do not so!
60
-
-`unique_seed` (String) Attention! The seed is being used to determine resource uniqueness prior and during apply-phase. Very important to state is that the **seed must be fully known during the plan phase**, otherwise, an error is thrown. Within one terraform plan & apply the **seed of every "value_is_fully_known" must be unique**! I recommend you to use the provider_meta-feature for increased uniqueness. Under certain circumstances you may face problems if you run terraform concurrenctly. If you do so, then I recommend you to pass-through a random value via a user (environment) variable that you then add to the seed.
61
61
-`value` (Dynamic) The `value` and if existing, nested attributes, are tested against "(known after apply)"
Copy file name to clipboardExpand all lines: docs/resources/is_known.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,19 +5,19 @@ subcategory: ""
5
5
description: |-
6
6
Allows you to have a access to result during plan phase that states whether value marked as "(known after apply)" or not.
7
7
Provider Metadata
8
-
Each module can use provider_meta. Please keep in mind that these settings only count for resources of this module! (see https://www.terraform.io/internals/provider-meta):
9
-
terraform
10
-
// Terraform provider_meta example
11
-
terraform {
12
-
// "value" is the provider name
13
-
provider_meta "value" {
14
-
// {workdir} -> The only available placeholder currently (see below for more information)
15
-
seed_prefix = "{workdir}#for-example" // Results into "/path/to/workdir#for-example"
8
+
Each module can use providermeta. Please keep in mind that these settings only count for resources of this module! (see https://www.terraform.io/internals/provider-meta https://www.terraform.io/internals/provider-meta):
9
+
```terraform
10
+
// Terraform providermeta example
11
+
terraform {
12
+
// "value" is the provider name
13
+
providermeta "value" {
14
+
// {workdir} -> The only available placeholder currently (see below for more information)
15
+
guidseed_addition = "{workdir}#for-example" // Results into "/path/to/workdir#for-example"
16
+
}
16
17
}
17
-
}
18
-
18
+
```
19
19
Optional
20
-
seed_prefix (String) It gets appended to each seed of any value_is_fully_known (resource) or value_is_known (resource) within the same module.
20
+
guid_seed_addition (String) It serves as addition to each seed of any value_is_fully_known (resource) or value_is_known (resource) within the project if specified in provider, or within the same module if specified in provider-meta.
21
21
Placeholders:
22
22
"{workdir}" (Keyword) The actual workdir; equals to terraform's path.root. This placeholder is
23
23
recommended because this value won't be dragged along the plan and apply phase in comparison to
@@ -29,19 +29,19 @@ description: |-
29
29
30
30
Allows you to have a access to `result` during plan phase that states whether `value` marked as "(known after apply)" or not.
31
31
## Provider Metadata
32
-
Each module can use provider_meta. Please keep in mind that these settings only count for resources of this module! (see https://www.terraform.io/internals/provider-meta):
32
+
Each module can use provider_meta. Please keep in mind that these settings only count for resources of this module! (see [https://www.terraform.io/internals/provider-meta](https://www.terraform.io/internals/provider-meta)):
33
33
```terraform
34
34
// Terraform provider_meta example
35
-
terraform {
36
-
// "value" is the provider name
37
-
provider_meta "value" {
38
-
// {workdir} -> The only available placeholder currently (see below for more information)
39
-
seed_prefix = "{workdir}#for-example" // Results into "/path/to/workdir#for-example"
35
+
terraform {
36
+
// "value" is the provider name
37
+
provider_meta "value" {
38
+
// {workdir} -> The only available placeholder currently (see below for more information)
39
+
guid_seed_addition = "{workdir}#for-example" // Results into "/path/to/workdir#for-example"
40
+
}
40
41
}
41
-
}
42
42
```
43
43
### Optional
44
-
-`seed_prefix` (String) It gets appended to each seed of any `value_is_fully_known` (resource) or `value_is_known` (resource) within the same module.
44
+
-`guid_seed_addition` (String) It serves as addition to each seed of any `value_is_fully_known` (resource) or `value_is_known` (resource) within the project if specified in provider, or within the same module if specified in provider-meta.
45
45
46
46
**Placeholders**:
47
47
- "{workdir}" (Keyword) The actual workdir; equals to terraform's path.root. This placeholder is
@@ -56,8 +56,8 @@ terraform {
56
56
57
57
### Required
58
58
59
+
-`guid_seed` (String) Attention! The seed is being used to determine resource uniqueness prior (first plan phase) and during apply phase (second plan phase). Very important to state is that the **seed must be fully known during the plan phase**, otherwise, an error is thrown. Within one terraform plan & apply the **seed of every "value_is_known" must be unique**! I really recommend you to use the provider configuration and/or provider_meta configuration to increase resource uniqueness. Besides `guid_seed`, the provider configuration seed, the provider_meta configuration seed and the resource type itself will become part of the final seed. Under certain circumstances you may face problems if you run terraform concurrenctly. If you do so, then I recommend you to pass-through a random value via a user (environment) variable that you then add to the seed.
59
60
-`proposed_unknown` (Dynamic) It is very crucial that this field is **not** filled by any custom value except the one produced by `value_unknown_proposer` (resource). This has the reason as its `value` is **always** unknown during the plan phase. On this behaviour this resource must rely and it cannot check if you do not so!
60
-
-`unique_seed` (String) Attention! The seed is being used to determine resource uniqueness prior and during apply-phase. Very important to state is that the **seed must be fully known during the plan phase**, otherwise, an error is thrown. Within one terraform plan & apply the **seed of every "value_is_known" must be unique**! I recommend you to use the provider_meta-feature for increased uniqueness. Under certain circumstances you may face problems if you run terraform concurrenctly. If you do so, then I recommend you to pass-through a random value via a user (environment) variable that you then add to the seed.
61
61
-`value` (Dynamic) The `value` (not nested attributes) is test against "(known after apply)"
0 commit comments