Skip to content

Commit aef643d

Browse files
committed
eli-239 tidying up
1 parent 67443bf commit aef643d

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

infrastructure/stacks/_shared/default_variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,3 @@ variable "default_aws_region" {
1515
description = "Default AWS region"
1616
type = string
1717
}
18-
19-
variable "workspace" {
20-
description = "Usually the developer short code or the name of the environment."
21-
type = string
22-
}

infrastructure/stacks/api-layer/s3_buckets.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ module "s3_rules_bucket" {
33
bucket_name = "eli-rules"
44
environment = var.environment
55
project_name = var.project_name
6+
stack_name = local.stack_name
7+
workspace = terraform.workspace
68
}
79

810
module "s3_audit_bucket" {
@@ -11,4 +13,6 @@ module "s3_audit_bucket" {
1113
environment = var.environment
1214
project_name = var.project_name
1315
bucket_expiration_days = 180
16+
stack_name = local.stack_name
17+
workspace = terraform.workspace
1418
}

infrastructure/stacks/api-layer/truststore_s3_bucket.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ module "s3_truststore_bucket" {
33
bucket_name = "truststore"
44
environment = var.environment
55
project_name = var.project_name
6+
stack_name = local.stack_name
7+
workspace = terraform.workspace
68
}
79

810
resource "aws_s3_bucket_policy" "truststore" {

infrastructure/stacks/bootstrap/modules.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module "tfstate" {
33

44
project_name = var.project_name
55
environment = var.environment
6-
workspace = var.workspace
6+
workspace = terraform.workspace
77
stack_name = local.stack_name
88
}

0 commit comments

Comments
 (0)