Skip to content

Commit 72adec2

Browse files
committed
add tfscaffold changes
1 parent e97e1c7 commit 72adec2

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

infrastructure/terraform/components/app/module_backend_api.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
module "backend_api" {
44
source = "../../modules/backend-api"
55

6-
component = "${var.component}-api"
7-
base_component = var.component
6+
component = var.component
87
project = var.project
98
environment = var.environment
109
aws_account_id = var.aws_account_id

infrastructure/terraform/components/sandbox/module_backend_api.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
module "backend_api" {
22
source = "../../modules/backend-api"
33

4-
component = "${var.component}-api"
5-
base_component = var.component
4+
component = var.component
65
project = var.project
76
environment = var.environment
87
aws_account_id = var.aws_account_id

infrastructure/terraform/modules/backend-api/locals.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
locals {
2-
csi = "${var.project}-${var.environment}-${var.component}"
2+
csi = "${var.csi}-${var.module}"
33

44
lambdas_source_code_dir = abspath("${path.module}/../../../../lambdas")
55

@@ -34,5 +34,5 @@ locals {
3434
for k, v in var.letter_suppliers : merge(v, { name = k }) if v.default_supplier
3535
][0]
3636

37-
sftp_environment = "${var.group}-${var.environment}-${var.base_component}"
37+
sftp_environment = "${var.group}-${var.environment}-${var.component}"
3838
}

infrastructure/terraform/modules/backend-api/variables.tf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ variable "group" {
2727
description = "The group variables are being inherited from (often synonmous with account short-name)"
2828
}
2929

30-
31-
##
32-
# tfscaffold variables specific to this component
33-
##
34-
3530
variable "component" {
3631
type = string
3732
description = "The variable encapsulating the name of this component"
3833
}
3934

40-
variable "base_component" {
35+
##
36+
# tfscaffold variables specific to this component
37+
##
38+
39+
variable "module" {
4140
type = string
42-
description = "The top level component containing this module"
41+
description = "The variable encapsulating the name of this module"
42+
default = "api"
4343
}
4444

4545
variable "csi" {

0 commit comments

Comments
 (0)