Details in https://gist.github.com/gaffo/418450aa974fe5ed5edb5352efc55248 but getting Template error: Fn::Select cannot select nonexistent value at index 1