Tuesday, February 17, 2015

How to use python BOTO framework to connect to Amazon EC2


 Python Boto framework is an excellent tool to automate things with Amazon. You have almost everything to automate Amazon EC2 using this comprehensive library.

A quick guide on how to use it in your project

1) Configure your EC2 credentials to be used by your application using one of the followings.

  • /etc/boto.cfg - for site-wide settings that all users on this machine will use
  • ~/.boto - for user-specific settings
  • ~/.aws/credentials - for credentials shared between SDKs 

http://boto.readthedocs.org/en/latest/boto_config_tut.html

2) Refer the API and choose what you need to do.

http://boto.readthedocs.org/en/latest/#currently-supported-services

3) Sample code for a simple autoscaler written using Boto framework. You may reuse the code in your projects quickly. This autoscaler spawn new instances based on the spike pattern of the load.

https://gist.github.com/shelan/b4a3f3ed0ccf9b4777e5

2 comments:

  1. Very useful information in connection both together since Python and AWS Cloud are the latest software trends which also get more number of job opportunities. Keep it up

    aws solution architect training in chennai

    ReplyDelete
  2. Assam 7th Model Paper 2023, Assam 7th Question Paper 2023 English Maths Hindi Assam 7th Model Paper 2023 is A Very Important Resource for Student Assam Board who are Going to Appear for the Upcoming Board Examination. Assam 7th Class Question Paper 2023 Scroll Down to Download and Check the Assam Board 7th Model Question Paper 2023 Andhra Pradesh 7th Class new and Latest Model Paper 2023 has Been Released on Official Website the Student Assam 7th Class Model Paper 2023 PDF on Official Website.

    ReplyDelete