File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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- }
Original file line number Diff line number Diff 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
810module "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}
Original file line number Diff line number Diff 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
810resource "aws_s3_bucket_policy" "truststore" {
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments