- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Get the list of AWS Instances and passed as an inp...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 06:11 AM
01-10-2023 06:11 AM
Get the list of AWS Instances and passed as an input to make it "selectlist" for catalog
I am creating a catalog for terraform activity , which needs aws instance id as input , I dont want to copy and paste instance id from aws portal everytime , i want to create a input with select List and pass all the instance id’s to it , so that an enduser can select the instance from the list and submit catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023 06:12 AM
01-23-2023 06:12 AM
Re: Get the list of AWS Instances and passed as an input to make it "selectlist" for catalog
The logs under Administration > health > Morpheus Logs wou8ld give more details on what the error is. Possibly a bad translation.
You’ll have to use servers not instances if you want discovered VMs to show as well.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 06:36 AM
01-10-2023 06:36 AM
Re: Get the list of AWS Instances and passed as an input to make it "selectlist" for catalog
Hello Paul,
you can achieve this using the REST API option list.
you can also filter based on zoneId(AWS Cloud ID) , so that the result will have all servers (managed & discovered) in AWS cloud.
in the translation script, you can make the name of the VM in the list box and the value can be externalId.
The below API doc link will help you to list all servers.
Thanks
Velan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2023 06:23 AM
01-20-2023 06:23 AM
Re: Get the list of AWS Instances and passed as an input to make it "selectlist" for catalog
Thank you for this information , t helped me partially but unable to get what i am looking ,
It gets me a list to select ec2 instance while submitting catalog but
- It only lists the ec2 instance provisioned from morpheus
- It gives me an error after selecting the ec2 instance
I either want to get instance name or id to be passed to terraform script from the select list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 04:10 AM
01-11-2023 04:10 AM
Re: Get the list of AWS Instances and passed as an input to make it "selectlist" for catalog
As @vsenthilkarasu stated, you can utilized the Option List type “Morpheus API”. Set the Option List then to “Instances”. If you need to filter off of specific cloud types or clouds, you would create these within the “Request Script”
By default, Morpheus will present Name and pass ID so a Translation script shouldn’t be required for your use case. However, you can place this default translation script if desired:
for (var x = 0; x < data.folders.length; x++) {
results.push({name:data.folders[x].name, value:data.folders[x].id});
}