I have an API Gateway setup using Terraform. I need to be able to visit the API Gateway on the base path, i.e, without the stage name appended to the base URL.
https://{api_id}.execute-api.{region}.amazonaws.com/ <- acceptable
https://{api_id}.execute-api.{region}.amazonaws.com/{StageName} <- not acceptable
I would do this from the console by creating a default deployment stage like here.
I looked but could not find anything in the terraform documentation here for stages
I want to be able to do this by creating the default stage, not using a aws_api_gateway_domain_name resource