output "apigw-id" { value = aws_api_gateway_rest_api.api.id } output "apigw-vpc-endpoints" { value = try(aws_vpc_endpoint.apigw-vpcep.*.dns_entry[0].*.dns_name, null) }