I just use the latested version (2.59.0) to deploy my api gateway with aws_apigatewayv2_domain_name,
the deploy process is fine, but I found it doest not expose the API Gateway domain name for me, so I could not add it to my route53 record
@ewbankkit Just ran into this issue as well. The api_endpoint is not the correct endpoint to use for DNS purposes.
The correct format (displayed under API Custom Domain Names as “API Gateway domain name”) is d-xxxxxxxxxx.execute-api.<region>.amazonaws.com while the api_endpoint has the format https://yyyyyyyyyy.execute-api.<region>.amazonaws.com.
The API id:s for x and y are also different. The logical place to get it would be as an output from aws_apigatewayv2_domain_name, along with the correct API Gateway zone ID (similar to how aws_api_gateway_domain_name works). But it seems currently there is no way of getting the right values other than manually checking the AWS Console.