Skip to content

Commit 16f8552

Browse files
committed
docs(terraform): Updated examples.
1 parent df2690f commit 16f8552

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/data-sources/env_ensure.md

+8
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ data "corefunc_env_ensure" "aws_pager" {
5454
name = "AWS_PAGER"
5555
}
5656
57+
output "aws_pager_value" {
58+
value = data.corefunc_env_ensure.aws_pager.value
59+
}
60+
5761
#=> [Error] Problem with Environment Variable: environment variable
5862
#=> AWS_PAGER is not defined
5963
@@ -65,6 +69,10 @@ data "corefunc_env_ensure" "aws_vault" {
6569
pattern = "(non)?prod$" # Must end with "prod" or "nonprod".
6670
}
6771
72+
output "aws_vault_value" {
73+
value = data.corefunc_env_ensure.aws_vault.value
74+
}
75+
6876
#=> [Error] Problem with Environment Variable: environment variable
6977
#=> AWS_VAULT does not match pattern (non)?prod$
7078
```

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

+8
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ data "corefunc_env_ensure" "aws_pager" {
2020
name = "AWS_PAGER"
2121
}
2222

23+
output "aws_pager_value" {
24+
value = data.corefunc_env_ensure.aws_pager.value
25+
}
26+
2327
#=> [Error] Problem with Environment Variable: environment variable
2428
#=> AWS_PAGER is not defined
2529

@@ -31,5 +35,9 @@ data "corefunc_env_ensure" "aws_vault" {
3135
pattern = "(non)?prod$" # Must end with "prod" or "nonprod".
3236
}
3337

38+
output "aws_vault_value" {
39+
value = data.corefunc_env_ensure.aws_vault.value
40+
}
41+
3442
#=> [Error] Problem with Environment Variable: environment variable
3543
#=> AWS_VAULT does not match pattern (non)?prod$

0 commit comments

Comments
 (0)