Create a new EC2 AMI instance from an existing AMI
- Open ElasticFox; Open tab AMI and Instances
- Select an AMI Instance to suit your needs and launch it as described here
- You will be shown the Launch New Instance dialog box
- Select the Instance Type as small or large
- Select the key pair you want to use. There might be just one in the dropdown if you are the only user, otherwise there can be one per member of your development team.
- Select the Availability Zone in the same zone as your primary services and data. We chose us-east-1c because that is the zone where all our VM’s are currently running.
- Select the appropriate Security Group, I chose pauls-sandbox, which was created as described here.
- Press the Launch button to launch an instance of this AMI
- The AMI instance is shown as running
- Right click on the running AMI instance and select Connect to Instance. This should bring up a terminal window
You have got to remember at all times that Amazon EC2 is stateless, it will not remember things between one AMI instance to the next unless you have allocated persistent storage in Amazon’s Simple Storage Service (S3) and maintain state there, e.g., .bashrc, etc for logins.
- Create a new volume in the Elastic Block Store (EBS) from the Volumes and Snapshots tab in ElasticFox
- Attach this newly created volume as /dev/sdh with the AMI instance that you have just started
- This causes the volume to be associated with the running instance