Skip to content

Commit f8f0c61

Browse files
committed
resource stack: include region in cfn stack name
This allows for comma separated regions for cloudformation
1 parent 992b197 commit f8f0c61

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

resource/stack.go

+3
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ func (s Stack) CloudformationStackName() *string {
108108
if s.Name != "" {
109109
name = strings.ReplaceAll(s.Name, " ", "-") + "-" + name
110110
}
111+
if s.Region != "" {
112+
name = name + "-" + s.Region
113+
}
111114

112115
return &name
113116
}

0 commit comments

Comments
 (0)