Book Image

Hybrid Cloud for Developers

By : Manoj Hirway
Book Image

Hybrid Cloud for Developers

By: Manoj Hirway

Overview of this book

This book introduces you to the hybrid cloud platform, and focuses on the AWS public cloud and OpenStack private cloud platforms. It provides a deep dive into the AWS and OpenStack cloud platform services that are essential for developing hybrid cloud applications. You will learn to develop applications on AWS and OpenStack platforms with ease by leveraging various cloud services and taking advantage of PaaS. The book provides you with the ability to leverage the ?exibility of choosing a cloud platform for migrating your existing resources to the cloud, as well as developing hybrid cloud applications that can migrate virtual machine instances from AWS to OpenStack and vice versa. You will also be able to build and test cloud applications without worrying about the system that your development environment supports. The book also provides an in-depth understanding of the best practices that are followed across the industry for developing cloud applications, as well as for adapting the hybrid cloud platform. Lastly, it also sheds light on various troubleshooting techniques for OpenStack and AWS cloud platform services that are consumed by hybrid cloud applications. By the end of this book, you will have a deep understanding of the hybrid cloud platform and will be able to develop robust, efficient, modular, scalable, and ?exible cloud applications.
Table of Contents (16 chapters)
Title Page
Dedication
Packt Upsell
Contributors
Preface
Index

Developing Amazon S3 applications – Windows


 We will begin by writing S3 applications that create an S3 bucket and upload/download files to it.

Creating an S3 bucket

Let's follow the tradition of building a Hello World application on AWS. We will write a simple C# .NET application that creates a new S3 bucket on your AWS account.

The following are the steps to create an S3 bucket:

  1. Open Visual Studio.
  2. Go toFile | New | Projectand under Visual C#, select theAWS Sample Projects and chooseAWS Empty Project:
  1. Provide a name for the project and click OK.
  2. You will be prompted to provide the AWS secret key and AWS secret access key. If you already have a profile created, you can select the existing profile or create a new one by entering the credentials. Click OK when done. 

You will now see two files open: App.config and Program.cs . The app.config file is the configuration file for the application, we won't be using this file for now. The Program.cs file is the actual source code of your program. 

  1. In the...