How connect UART1 to ESP32 and send AT commands for HTTP and MQTT

you can see this example to transfer uart data to tcp:

For AWS mqtt, you can see here