Amazon just announced that API Gateway 2.0 now supports wildcard custom domain names.
With this new feature, you can now combine a wildcard domain to an API Gateway 2.0 directly in your vapor.yml
configuration file:
environments:
production:
gateway-version: 2
domain: '*.example.com'
You can read more about custom domains in our documention.