From 33957bacd3adce7e1c4648248ec64c2493c36520 Mon Sep 17 00:00:00 2001 From: Henrik Fricke Date: Mon, 9 May 2022 19:29:42 +0200 Subject: [PATCH] refa: enabled_greeting -> enable_greeting_feature --- 4-parameterization/modules/api/main.tf | 2 +- 4-parameterization/modules/api/variables.tf | 8 ++++---- 4-parameterization/staging/main.tf | 4 ++-- 5-remote-backend/modules/api/main.tf | 2 +- 5-remote-backend/modules/api/variables.tf | 6 +++--- 5-remote-backend/staging/main.tf | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/4-parameterization/modules/api/main.tf b/4-parameterization/modules/api/main.tf index ff043c5..3963bf9 100644 --- a/4-parameterization/modules/api/main.tf +++ b/4-parameterization/modules/api/main.tf @@ -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 diff --git a/4-parameterization/modules/api/variables.tf b/4-parameterization/modules/api/variables.tf index a888291..caeadb0 100644 --- a/4-parameterization/modules/api/variables.tf +++ b/4-parameterization/modules/api/variables.tf @@ -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 } diff --git a/4-parameterization/staging/main.tf b/4-parameterization/staging/main.tf index ec4a8d3..4e15eb0 100644 --- a/4-parameterization/staging/main.tf +++ b/4-parameterization/staging/main.tf @@ -15,6 +15,6 @@ module "website" { module "api" { source = "../modules/api" - environment = "staging" - enable_greeting = true + environment = "staging" + enabled_greeting_feature = true } diff --git a/5-remote-backend/modules/api/main.tf b/5-remote-backend/modules/api/main.tf index ff043c5..3963bf9 100644 --- a/5-remote-backend/modules/api/main.tf +++ b/5-remote-backend/modules/api/main.tf @@ -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 diff --git a/5-remote-backend/modules/api/variables.tf b/5-remote-backend/modules/api/variables.tf index be7b226..caeadb0 100644 --- a/5-remote-backend/modules/api/variables.tf +++ b/5-remote-backend/modules/api/variables.tf @@ -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 } diff --git a/5-remote-backend/staging/main.tf b/5-remote-backend/staging/main.tf index 60ad3bc..6cfa3e3 100644 --- a/5-remote-backend/staging/main.tf +++ b/5-remote-backend/staging/main.tf @@ -20,6 +20,6 @@ module "website" { module "api" { source = "../modules/api" - environment = "staging" - enable_greeting = true + environment = "staging" + enabled_greeting_feature = true }