Skip to content

Commit

Permalink
refa: enabled_greeting -> enable_greeting_feature
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikFricke committed May 9, 2022
1 parent a48e499 commit 33957ba
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion 4-parameterization/modules/api/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module "lambda_function" {
runtime = "nodejs14.x"
source_path = "${path.module}/functions"
environment_variables = {
GREETING_ENABLED = "${var.enable_greeting}"
GREETING_ENABLED = "${var.enabled_greeting_feature}"
}

publish = true
Expand Down
8 changes: 4 additions & 4 deletions 4-parameterization/modules/api/variables.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
variable "environment" {
type = string
type = string
description = "Identifier for the environment (e.g. staging, development or prod)"
}

variable "enable_greeting" {
type = bool
variable "enabled_greeting_feature" {
type = bool
description = "Enable greeting feature"
default = false
default = false
}
4 changes: 2 additions & 2 deletions 4-parameterization/staging/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ module "website" {
module "api" {
source = "../modules/api"

environment = "staging"
enable_greeting = true
environment = "staging"
enabled_greeting_feature = true
}
2 changes: 1 addition & 1 deletion 5-remote-backend/modules/api/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module "lambda_function" {
runtime = "nodejs14.x"
source_path = "${path.module}/functions"
environment_variables = {
GREETING_ENABLED = "${var.enable_greeting}"
GREETING_ENABLED = "${var.enabled_greeting_feature}"
}

publish = true
Expand Down
6 changes: 3 additions & 3 deletions 5-remote-backend/modules/api/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ variable "environment" {
description = "Identifier for the environment (e.g. staging, development or prod)"
}

variable "enable_greeting" {
type = bool
variable "enabled_greeting_feature" {
type = bool
description = "Enable greeting feature"
default = false
default = false
}
4 changes: 2 additions & 2 deletions 5-remote-backend/staging/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ module "website" {
module "api" {
source = "../modules/api"

environment = "staging"
enable_greeting = true
environment = "staging"
enabled_greeting_feature = true
}

0 comments on commit 33957ba

Please sign in to comment.