File tree 5 files changed +11
-15
lines changed
corefunc_str_truncate_label
5 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 1
- 1.0.0
1
+ 1.0.0
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Maps to the [`corefunc.EnvEnsure()`](https://pkg.go.dev/github.com/northwood-lab
23
23
## Example Usage
24
24
25
25
``` terraform
26
- # -------------------------------------------------------------------------
26
+ #-------------------------------------------------------------------------
27
27
# AWS_DEFAULT_REGION="us-east-1"
28
28
29
29
data "corefunc_env_ensure" "aws_default_region" {
@@ -36,9 +36,9 @@ output "aws_default_region_value" {
36
36
value = data.corefunc_env_ensure.aws_default_region.value
37
37
}
38
38
39
- # => us-east-1
39
+ #=> us-east-1
40
40
41
- # -------------------------------------------------------------------------
41
+ #-------------------------------------------------------------------------
42
42
# AWS_PAGER=""
43
43
44
44
data "corefunc_env_ensure" "aws_pager" {
@@ -51,7 +51,7 @@ output "aws_pager_value" {
51
51
value = data.corefunc_env_ensure.aws_pager.value
52
52
}
53
53
54
- # => This will trigger an error
54
+ #=> [Error] Undefined Environment Variable: environment variable AWS_PAGER is not defined
55
55
```
56
56
57
57
<!-- schema generated by tfplugindocs -->
Original file line number Diff line number Diff line change @@ -44,20 +44,18 @@ Maps to the [`corefunc.TruncateLabel()`](https://pkg.go.dev/github.com/northwood
44
44
45
45
``` terraform
46
46
# Pass the prefix and the label, then limit to 64 characters
47
-
48
47
data "corefunc_str_truncate_label" "label" {
49
48
prefix = "NW-ZZZ-CLOUD-TEST-APP-CLOUD-PROD-CRIT"
50
49
label = "K8S Pods Not Running Deployment Check"
51
50
max_length = 64
52
51
}
53
52
54
53
# `value` is the read-only attribute containing the truncated label
55
-
56
54
output "value" {
57
55
value = data.corefunc_str_truncate_label.label.value
58
56
}
59
57
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…
61
59
```
62
60
63
61
<!-- schema generated by tfplugindocs -->
Original file line number Diff line number Diff line change 1
- # -------------------------------------------------------------------------
1
+ # -------------------------------------------------------------------------
2
2
# AWS_DEFAULT_REGION="us-east-1"
3
3
4
4
data "corefunc_env_ensure" "aws_default_region" {
@@ -11,9 +11,9 @@ output "aws_default_region_value" {
11
11
value = data. corefunc_env_ensure . aws_default_region . value
12
12
}
13
13
14
- # => us-east-1
14
+ # => us-east-1
15
15
16
- # -------------------------------------------------------------------------
16
+ # -------------------------------------------------------------------------
17
17
# AWS_PAGER=""
18
18
19
19
data "corefunc_env_ensure" "aws_pager" {
@@ -26,4 +26,4 @@ output "aws_pager_value" {
26
26
value = data. corefunc_env_ensure . aws_pager . value
27
27
}
28
28
29
- # => This will trigger an error
29
+ # => [Error] Undefined Environment Variable: environment variable AWS_PAGER is not defined
Original file line number Diff line number Diff line change 1
1
# Pass the prefix and the label, then limit to 64 characters
2
-
3
2
data "corefunc_str_truncate_label" "label" {
4
3
prefix = " NW-ZZZ-CLOUD-TEST-APP-CLOUD-PROD-CRIT"
5
4
label = " K8S Pods Not Running Deployment Check"
6
5
max_length = 64
7
6
}
8
7
9
8
# `value` is the read-only attribute containing the truncated label
10
-
11
9
output "value" {
12
10
value = data. corefunc_str_truncate_label . label . value
13
11
}
14
12
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…
You can’t perform that action at this time.
0 commit comments