Create a key-pair and then attach it to Elastic Beanstalk environment.
-
Steps to create a key-pair
- Login to AWS
- Services -> EC2
- In left under NETWORK & SECURITY select key pairs
- Select Create new Key Pair, type key name and click on create. The key will be automatically downloaded to your system.
- Steps to attach created key pair to Elastic Beanstalk environment
-
AWS -> Services -> Elastic Beanstalk
- Select your environment and click on the configuration in left.
- In Configuration overview select modify from Security.
- Under Virtual machine permissions select key-pair that we created.
- Click on save and then on save configuration.
- This will take some time to reflect to your EC2 instance.