Skip to content

Commit c12ccfc

Browse files
committed
docs: Update the formatting of the provider examples.
1 parent 822bdf9 commit c12ccfc

File tree

5 files changed

+11
-15
lines changed

5 files changed

+11
-15
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.0.0

docs/data-sources/env_ensure.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Maps to the [`corefunc.EnvEnsure()`](https://pkg.go.dev/github.com/northwood-lab
2323
## Example Usage
2424

2525
```terraform
26-
# -------------------------------------------------------------------------
26+
#-------------------------------------------------------------------------
2727
# AWS_DEFAULT_REGION="us-east-1"
2828
2929
data "corefunc_env_ensure" "aws_default_region" {
@@ -36,9 +36,9 @@ output "aws_default_region_value" {
3636
value = data.corefunc_env_ensure.aws_default_region.value
3737
}
3838
39-
# => us-east-1
39+
#=> us-east-1
4040
41-
# -------------------------------------------------------------------------
41+
#-------------------------------------------------------------------------
4242
# AWS_PAGER=""
4343
4444
data "corefunc_env_ensure" "aws_pager" {
@@ -51,7 +51,7 @@ output "aws_pager_value" {
5151
value = data.corefunc_env_ensure.aws_pager.value
5252
}
5353
54-
# => This will trigger an error
54+
#=> [Error] Undefined Environment Variable: environment variable AWS_PAGER is not defined
5555
```
5656

5757
<!-- schema generated by tfplugindocs -->

docs/data-sources/str_truncate_label.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,18 @@ Maps to the [`corefunc.TruncateLabel()`](https://pkg.go.dev/github.com/northwood
4444

4545
```terraform
4646
# Pass the prefix and the label, then limit to 64 characters
47-
4847
data "corefunc_str_truncate_label" "label" {
4948
prefix = "NW-ZZZ-CLOUD-TEST-APP-CLOUD-PROD-CRIT"
5049
label = "K8S Pods Not Running Deployment Check"
5150
max_length = 64
5251
}
5352
5453
# `value` is the read-only attribute containing the truncated label
55-
5654
output "value" {
5755
value = data.corefunc_str_truncate_label.label.value
5856
}
5957
60-
# => NW-ZZZ-CLOUD-TEST-APP-CLOUD-PR…: K8S Pods Not Running Deploymen…
58+
#=> NW-ZZZ-CLOUD-TEST-APP-CLOUD-PR…: K8S Pods Not Running Deploymen…
6159
```
6260

6361
<!-- schema generated by tfplugindocs -->

examples/data-sources/corefunc_env_ensure/data-source.tf

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -------------------------------------------------------------------------
1+
#-------------------------------------------------------------------------
22
# AWS_DEFAULT_REGION="us-east-1"
33

44
data "corefunc_env_ensure" "aws_default_region" {
@@ -11,9 +11,9 @@ output "aws_default_region_value" {
1111
value = data.corefunc_env_ensure.aws_default_region.value
1212
}
1313

14-
# => us-east-1
14+
#=> us-east-1
1515

16-
# -------------------------------------------------------------------------
16+
#-------------------------------------------------------------------------
1717
# AWS_PAGER=""
1818

1919
data "corefunc_env_ensure" "aws_pager" {
@@ -26,4 +26,4 @@ output "aws_pager_value" {
2626
value = data.corefunc_env_ensure.aws_pager.value
2727
}
2828

29-
# => This will trigger an error
29+
#=> [Error] Undefined Environment Variable: environment variable AWS_PAGER is not defined
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
# Pass the prefix and the label, then limit to 64 characters
2-
32
data "corefunc_str_truncate_label" "label" {
43
prefix = "NW-ZZZ-CLOUD-TEST-APP-CLOUD-PROD-CRIT"
54
label = "K8S Pods Not Running Deployment Check"
65
max_length = 64
76
}
87

98
# `value` is the read-only attribute containing the truncated label
10-
119
output "value" {
1210
value = data.corefunc_str_truncate_label.label.value
1311
}
1412

15-
# => NW-ZZZ-CLOUD-TEST-APP-CLOUD-PR…: K8S Pods Not Running Deploymen…
13+
#=> NW-ZZZ-CLOUD-TEST-APP-CLOUD-PR…: K8S Pods Not Running Deploymen…

0 commit comments

Comments
 (0)