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

Setting up a Unix development environment for Python


For Unix developers, the following prerequisites must be available for setting up the development environment:

  • Any Linux distribution 
  • Python 2.7 or above installed
  • An AWS account (access key and secret access key)
  • An internet connection

AWS provides Python packages for accessing various services. For example, a Python package called boto3 is provided by AWS for accessing all AWS services. 

Execute the following steps to set up your development environment on a Unix system:

  1. Install Python 2.7 or above
  2. Install Python package manager (pip)
  3. Using pip, install the Python packages boto3 and awscli:
pip install boto3
pip install awscli
  1. Configure the AWS account by invoking the aws configure command and provide your AWS access key and secret access key. Also specify the region:
[root@packt-pub]# aws configure
AWS Access Key ID []: AJDUPOET79345LJNMSKL
AWS Secret Access Key []: KSHDF908lkjLKLLDFGlkjld9435NKLJLDlkslLKJ
Default region name [us-east-1]: us...