in deploy/eligible_instance_groups.go [88:113]
func stackIndep(app *App) []grp.InstanceGroup {
type asr struct {
account string
stack string
region string
}
set := make(map[asr]bool)
for _, account := range app.Accounts() {
for _, cluster := range account.Clusters() {
stackName := cluster.StackName()
for _, regionName := range cluster.RegionNames() {
set[asr{account: account.Name(), stack: stackName, region: regionName}] = true
}
}
}
result := []grp.InstanceGroup{}
for x := range set {
result = append(result, grp.New(app.Name(), x.account, x.region, x.stack, ""))
}
return result
}