Skip to content

Commit

Permalink
resource stack: include region in cfn stack name
Browse files Browse the repository at this point in the history
This allows for comma separated regions for cloudformation
  • Loading branch information
dschofie committed May 7, 2024
1 parent 992b197 commit f8f0c61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resource/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ func (s Stack) CloudformationStackName() *string {
if s.Name != "" {
name = strings.ReplaceAll(s.Name, " ", "-") + "-" + name
}
if s.Region != "" {
name = name + "-" + s.Region
}

return &name
}
Expand Down

0 comments on commit f8f0c61

Please sign in to comment.