File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ locals {
2222 account_id = data. aws_caller_identity . current . account_id
2323
2424 aws_resources_name = terraform. workspace == " default" ? " ${ var . prefix } -${ var . app_name } " : " ${ var . prefix } -${ var . app_name } -${ terraform . workspace } "
25+ sns_topic_name = terraform. workspace == " default" ? " ${ var . app_name } -${ var . prefix } " : " ${ var . app_name } -${ var . prefix } -${ terraform . workspace } "
2526
2627 default_tags = length (var. default_tags ) == 0 ? {
2728 team : " TVA" ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ resource "aws_sns_topic_policy" "default" {
2121}
2222
2323resource "aws_sns_topic" "gibs_response_topic" {
24- name = " svc-${ local . aws_resources_name } -gibs-response-topic"
24+ name = " svc-${ local . sns_topic_name } -gibs-response-topic"
2525 lifecycle {
2626 # GIBS publishes to this topic, so we want to avoid destroying it unless coordinating the change with GIBS
2727 prevent_destroy = true
You can’t perform that action at this time.
0 commit comments