Problem:
Is there any way to access to the console of an EC2 instance via the API? I saw a couple tickets that looked like this was started, but I didn’t see any reference to this in the v2 API. I’m attempting to retrieve an instance’s ID using the console, which displays it, to then retrieve the Administrator password via the AWS CLI.
Having this ability would allow me to more easily automate end-to-end the provisioning and configuration of a Windows server using Ansible. Unless the ID or (even better) the password is accessible another way.
Expected outcome:
The ability to retrieve the console output.
Foreman and Proxy versions:
1.20.0-RC1
Foreman and Proxy plugin versions:
foreman-tasks 0.14.1
foreman_ansible 2.2.9
foreman_cockpit 2.0.3
foreman_hooks 0.3.14
foreman_memcache 0.1.1
foreman_remote_execution 1.6.4
Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)
logs