Problems connecting an ec2 instances with logstash on to the elastic cloud

As you point out, the port in the cloud.id defaults to 443. It can be changed - see this thread: "ECE + AWS load balancer: port configuration? - #2 by Alex_Piggott"

LogStash::LicenseChecker::LicenseError: Failed to fetch X-Pack information from Elasticsearch. This is likely due to failure to reach live Elasticsearch cluster

This is almost always nothing to do with xpack/licenses! It just means that whatever comms configuration you have is failing to hit an alive Elasticsearch service

If it's still failing once you've fixed the port and switched back to cloud.id then post snippets of your logstash config and we'll take a look

Alex