Go to AWS EC2, create a new instance, then on the Dashboard of this instance, click on Key pairs in the resources card and create a new ssh key pair. Just change format to pem: The key will be downloaded automatically. It can now be uploaded to cloud9 environment. Just switch over to cloud9, click…