Mar 22, 2020 Step 2) In the next step you will be asked to create a key pair to login to you an instance. A key pair is a set of public-private keys. AWS stores the private key in the instance, and you are asked to download the private key. Make sure you download the key and keep it safe and secured; if it is lost you cannot download it again. Create a new.
Access instance via SSH
We need to create a key pair via AWS Console (or CLI tool). AWS will load the public half of the key into your EC2 instances and when you try to SSH into the instance then AWS will require you to provide the private half of the key pair (you do this using the -i path/to/private.pem flag).
Default location of web page on base AWS AMI (open it and make a change):
To create a new AMI based off any modifications we make to the currently running instance:
To generate a new AMI based on the state of the currently running instance, ssh into the instance and run:
Select the instance type that you want to create and then click Review and Launch. You see the Step 7: Review Instance Launch page. The figure shows the Security Groups section. When you create your instance, Amazon warns you that anyone can access it. Given that you probably want to work with EC2 privately, you must modify the security group settings to reduce the risk of prying eyes. Start Writing. Start Writing Help; About; Start Writing; Sponsor: Brand-as-Author; Sitewide Billboard. PuTTY does not natively support the private key format for SSH keys. PuTTY provides a tool named PuTTYgen, which converts keys to the required format for PuTTY. You must convert your private key (.pem file) into this format (.ppk file) as follows in order to connect to your instance using PuTTY.
For full details see: http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/CLTRG-ami-bundle-vol.html
We now need to upload the new AMI to S3, so still within the running instance execute the following command:
Generate New Key To Access Ec2 Insrtance Password
For full details see: http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/CLTRG-ami-upload-bundle.html
Generate New Key To Access Ec2 Insrtance Download
Now we need to register our new AMI (done via the AWS Console): 'Register New AMI' under EC2 > AMIsThen specify the locatation in S3: {S3_buckname}/{path_to_manifest_xml}Now from here we can launch an instance from this new AMI.