April 2018
Intermediate to advanced
280 pages
8h 37m
English
To launch an EC2 instance on AWS, we need:
An EC2 instance can be launched using an existing AMI in the same region. There are two important classes used for this purpose. The AmazonEC2Client class is used to instantiate an EC2 client object. This class is used to manage the EC2 resources. Also, the RunInstancesRequest class is used to create a request object that consists of the instance details such as AMI identifier, instance type, key pair, and so on. The request object is then passed to the RunInstances() function of the AmazonEC2Client class. This function then sends a request to AWS to start the specified EC2 instance.
The following ...