Skip to content

Commit

Permalink
Temporarily revert stack conditional instantiation to outputs populate
Browse files Browse the repository at this point in the history
When the module is optionally created, outputs don't validate. The outputs will go away entirely once the next iteration of terraform code is up, but for now, just rename the policies.
  • Loading branch information
jameshochadel committed Apr 24, 2024
1 parent 3b2ddc9 commit 8ca113e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion terraform/modules/csb/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ data "aws_iam_policy_document" "brokerpak_smtp" {
}

resource "aws_iam_policy" "brokerpak_smtp" {
name = "brokerpak_smtp"
name = "${var.stack_description}-brokerpak-smtp"
description = "SMTP broker policy (covers SES, IAM, and supplementary Route53)"
policy = data.aws_iam_policy_document.brokerpak_smtp.json
}
Expand Down
3 changes: 0 additions & 3 deletions terraform/stacks/main/stack.tf
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,6 @@ module "sns" {
}

module "csb" {
// Deploy only to development while iterating.
// See progress at https://github.com/cloud-gov/product/issues/2512.
count = var.stack_description == "development" ? 1 : 0
source = "../../modules/csb"

stack_description = var.stack_description
Expand Down

0 comments on commit 8ca113e

Please sign in to comment.