Skip to content

Commit 4ec3447

Browse files
fix(cloudrun): change naming of environment to environment variables for clarity
1 parent 612bed6 commit 4ec3447

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

cloudrun/manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ runtime:
1212
go_module: github.com/nitrictech/plugins/gcp/cloudrun
1313

1414
inputs:
15-
environment:
15+
environment_variables:
1616
type: map(string)
1717
description: 'Cloud Run service environment variables (e.g. `{"NODE_ENV": "production", "API_KEY": "secret"}`)'
1818
memory_mb:

cloudrun/module/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ resource "google_cloud_run_v2_service" "service" {
130130
}
131131

132132
dynamic "env" {
133-
for_each = merge(var.environment, var.suga.env)
133+
for_each = merge(var.environment_variables, var.suga.env)
134134
content {
135135
name = env.key
136136
value = env.value

cloudrun/module/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ variable "suga" {
1010
})
1111
}
1212

13-
variable "environment" {
13+
variable "environment_variables" {
1414
type = map(string)
1515
description = "Environment variables to set on the lambda function"
1616
default = {}

0 commit comments

Comments
 (0)