Find EC2 and click Instances to access Instances interface
Click Launch Instance
Name and tags
ec2-application
Application and OS Images (Amazon Machine Image)
Instance type
Key pair
A key pair consists of a public key and a private key that are used to encrypt and decrypt the communication between your instance and your device. You’ll need to download and save the private key file (.pem) to your device and change its permissions to make it readable only by you. You’ll also need to use a terminal or a shell program that supports SSH, such as PuTTY or Git Bash.
Network settings
Click Launch instance
Back to your EC2 console.
In the navigation pane, choose Instances and select the instance that you created in the previous section. Then from Actions choose Security, and Modify IAM Role.
On the Modify IAM Role page, choose the role that you created in the previous steps from the IAM role dropdown list. Then choose Apply.