Following this blog post and a few other google searches, I have managed to get a domain set up for my API Gateway.
However I need a different domain depending on the Stage. In the development environment I want
dev.example.com whereas in production, just
example.com. There seems to be an
Fn::if that might help, but I can’t work out how to create the conditional.
Has anyone done anything similar? It doesn’t have to just be with CustomDomain of course, any examples of changing a parameter depending on the stage would be great.