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

Is this the problem? Enabling X-Pack in Logstash 7 gives me this error

Do you have a field called xpack.monitoring.elasticsearch.hosts enabled anywhere? (or something like that?)