lately I am doing some POC's in amazon elastic cloud. I created a sample instance and I uploaded my sample web application and finally saw my hello world jsp.
Now I am trying to create one more instance and want to send data from my first instance to second instance. I know that this can be achieved through zookeeper. But I want to create my second instance programmatically and not through the management console.
How to achieve this? I am thinking that this has something to do with the amazon s3 where we bundle our ami. But not sure about it. Can anyone give me guidelines?
To create an instance store-backed Linux AMI, start from an instance that you've launched from an existing instance store-backed Linux AMI. After you've customized the instance to suit your needs, bundle the volume and register a new AMI, which you can use to launch new instances with these customizations.
To create an AMI from a snapshot using the consoleIn the navigation pane, under Elastic Block Store, choose Snapshots. Choose the snapshot and choose Actions, Create Image. In the Create Image from EBS Snapshot dialog box, complete the fields to create your AMI, then choose Create.
An Amazon Machine Image (AMI) is a template that contains a software configuration (for example, an operating system, an application server, and applications). From an AMI, you launch an instance, which is a copy of the AMI running as a virtual server in the cloud.
This is a link to the Amazon documentation for creating an AMI. Amazon provide a set of command line tools so you should be able to call these from your script.
you may also find these 3rd party scripts useful for creating a bootable EBS from a running instance.
Or it may be more useful to invoke the AWS EC2 APIs more directly from your application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With