Importing ec2 instances

Problem:
When importing a running EC2 host as a ‘managed host’ I find the following error in the logs:
could not connect to ssh-agent: Agent not configured

I can’t find any documentation around the ssh-agent

Expected outcome:
Foreman can access the host

Foreman and Proxy versions:
latest (1.22)