- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- How to select a Key Pair during AWS EC2 Instance c...
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
10-10-2022 12:05 AM
10-10-2022 12:05 AM
How to select a Key Pair during AWS EC2 Instance creation?
When I create a AWS EC2 instance, I do not find the option to select the key pair that I want. The “Create Instance” method provides pretty much every other option but not the option to select the Key Pair. Once the EC2 instance is created, I notice that the instance is created with a key pair from the key pair list already available in Morpheus. I would like to know how to select the specific key pair I want during instance creation.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2022 06:45 AM
10-11-2022 06:45 AM
Re: How to select a Key Pair during AWS EC2 Instance creation?
When provisioning to AWS Morpheus uses its own key pair to provision the instance. If you are looking to add your own public key to the instance during provisioning you should be able to add the key to your user settings for Linux. Then during provisioning if add current user is selected it should add that key. You could also do this in a post provisioning task if you want the same key added to all instances provisioned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2022 06:56 AM
10-12-2022 06:56 AM
Re: How to select a Key Pair during AWS EC2 Instance creation?
Hi Vineeth - I probably should have been more clear. This process will not replace the key pair used to provision the instance as Morpheus will need this. What it does do, is add the key set on your users settings to the authorized_keys file in the OS direct. Below is a screenshot from my AWS instance authorized_keys file showing both the Morpheus key and also my key for the test user that was added. In my case from adding the user group at provisioning time.
The add current user I was referring to is actually “Create your user” checkbox. This is typically automaticaly checked if you have user settings in your user profile.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2022 12:22 AM
10-12-2022 12:22 AM
Re: How to select a Key Pair during AWS EC2 Instance creation?
Hello Bob,
Thank you for the response. Based on your instructions, I performed the below actions
- Created a new keypair under Infrastructure->Trust
- Added the newly created keypair in my User Profile in Administration->Users->My Profile->Edit-> Linux Settings
- Created a User Group Administration->User Groups
- Added my User Profile under the User Group.
- During EC2 provisioning, selected the new User Group in the Configure->User Config section. Created the instance.
I noticed that the instance is still created with a different key pair and not the one I created in Step 1. You mentioned “add current user” in your response, however I could not find such an option during the Create Instance flow.
Could you please help me here?
Regards,
Vineeth.