I am looking at setting up service catalog & catalog item based provisioning requests to aws. Ideally via a generic catalog item. So far I have been able to set most options (az, sec group, flav) in the amazon_Customization method via queries to vmdb. Getting the list of AMIs from vmdb is however eluding, where are they stored?
$evm.root[‘miq_provision’].options[:src_vm_id] = [34, “RHEL-7.3_HVM_GA-20161026-x86_64-1-Hourly2-GP2”] (type: Array)
Hopefully once I select the desired ami from vmdb, I’ll set_option(:src_vm_id)?
Also since its generic catalog item, I’ll probably need to set/select the provider?
$evm.root[‘miq_provision’].options[:src_ems_id] = [1, “AWSDev”] (type: Array)