Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hybrid Cloud for Developers

You're reading from   Hybrid Cloud for Developers Develop and deploy cost-effective applications on the AWS and OpenStack platforms with ease

Arrow left icon
Product type Paperback
Published in Apr 2018
Publisher Packt
ISBN-13 9781788830874
Length 280 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Manoj Hirway Manoj Hirway
Author Profile Icon Manoj Hirway
Manoj Hirway
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Introducing Hybrid Clouds FREE CHAPTER 2. Exploring AWS Cloud 3. Exploring OpenStack Private Cloud 4. Developing AWS Cloud Applications 5. Developing OpenStack Applications 6. Cloud Migration 7. Hybrid Cloud Best Practices 8. Monitoring and Troubleshooting Hybrid Cloud 9. Hybrid Cloud Security 10. Other Books You May Enjoy

Developing Amazon EC2 applications – Windows


In the second chapter, we discussed EC2 instances in brief. 

Let's now start by looking at how we can launch an EC2 instance using the SDK by writing an application program. We will use the same .NET C# SDK classes and their functions to manipulate EC2 instances.

Launching an EC2 instance

To launch an EC2 instance on AWS, we need:

  • Amazon Machine Image (AMI)
  • Instance type or flavor of the instance
  • Key Pair name

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime