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

7 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
  3. Messy top fade styles allow creative freedom with tousled top layers contrasting clean fades. These cuts give a relaxed, modern feel and best hair clay are perfect for casual wearers looking for effortless coolness with just a touch of structure.

    ReplyDelete
  4. 처음 경험해봤는데 기대 이상으로 만족스러웠습니다. 출장마사지 덕분에 집에서도 전문적인 관리를 받을 수 있었어요.

    ReplyDelete
  5. 콘텐츠를 자주 이용하는 사람에게 매우 유용합니다. 상품권현금 를 통해 간편하게 결제할 수 있고, 다양한 플랫폼에서 사용할 수 있어 편리함이 큽니다. 충전도 쉬워 좋습니다.

    ReplyDelete
  6. 필요한 순간 빠르게 구매하고 바로 사용할 수 있어 매우 편리했어요. 상품권소액결제 서비스 덕분에 절약 효과도 커서 앞으로도 계속 이용할 생각입니다.

    ReplyDelete
  7. 원하는 시간대에 근무할 수 있어 생활 패턴을 유지하기 편했고 수익 부분도 기대 이상이었습니다. 특히 도우미알바 장점이 잘 정리돼 있어 시작 전에 많은 도움이 됐습니다.

    ReplyDelete