There's more...

Generally, we create an EC2 instance and configure it with the required software and create a virtual image (AMI) from that EC2 from the EC2 Actions | Image | Create Image menu. Other compatible virtual machine images can also be imported to AWS for reuse. If we have created any, this will be visible under the My AMIs menu.

So instead of using boot strap scripts in step 5, we can use custom AMI to create ec2 instances.  As the software already installed in EC2, it takes lesser time to start server.  It is more useful when we have to install larger software that takes significant time. 

Get AWS Networking Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.