in internal/pkg/deploy/cloudformation/cloudformation.go [272:283]
func stackDoesNotExist(err error) bool {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case "ValidationError":
// A ValidationError occurs if we describe a stack which doesn't exist.
if strings.Contains(aerr.Message(), "does not exist") {
return true
}
}
}
return false
}