**SOLVED: the output I was seeking can be found in the resource aws_apigatewayv2_domain_name from the attribute target_domain_name (which is nested under domain_name_configuration.
I am looking to find a way to add an output in my Terraform module to get the url of the custom domain name route53 url that is automatically created by AWS when I create a custom domain in Api Gateway. (ex. d-uq5rzcek63.execute-api.us-east-1.amazonaws.com). Does anyone know how to access that value as an output?
Here is the block of code building the custom domain:
resource "aws_apigatewayv2_domain_name" "module_domain" {
domain_name = "exampledomain.com"
domain_name_configuration {
certificate_arn = "arn:aws:acm:us-east-1:000000000000:certificate/xxxx11x-x11x-11xx-11x1-11xxx111xxx1"
endpoint_type = "REGIONAL"
security_policy = "TLS_1_2"
}
}
Refer to screenshot of where this value can be found in console.