How do you set the IAM Role?


I see some older tickets indicating I should be able to set the IAM role for a new EC2 instance, however, I’m not seeing it in the menus or any references in the docs. Could someone point me in the right direction?

Expected outcome:

An option is available to set the IAM role for a new EC2 instance

Foreman and Proxy versions:


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.)



you set this in EC2 compute resource in Images tab. Create/edit image and you will get what you want. It’s free text field currently, we do not fetch IAM roles from EC2 API.

1 Like

Awesome, thanks @lzap!