Skip to content

Commit 1b39a2e

Browse files
hpidcocknat-henderson
authored andcommitted
Added Environment Variables configuration to Cloud Functions (hashicorp#1830)
1 parent b0152df commit 1b39a2e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/r/cloudfunctions_function.html.markdown

+5
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ resource "google_cloudfunctions_function" "function" {
3838
labels {
3939
my-label = "my-label-value"
4040
}
41+
environment_variables {
42+
MY_ENV_VAR = "my-env-var-value"
43+
}
4144
}
4245
```
4346

@@ -69,6 +72,8 @@ The following arguments are supported:
6972

7073
* `labels` - (Optional) A set of key/value label pairs to assign to the function.
7174

75+
* `environment_variables` - (Optional) A set of key/value environment variable pairs to assign to the function.
76+
7277
* `retry_on_failure` - (Optional) Whether the function should be retried on failure. This only applies to bucket and topic triggers, not HTTPS triggers.
7378

7479
## Attributes Reference

0 commit comments

Comments
 (0)