Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6968407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:26:52+00:00 2026-05-27T16:26:52+00:00

i am using the boto python module for polling amazon ec2 instances, however it

  • 0

i am using the boto python module for polling amazon ec2 instances, however it returns null values,

i can retrieve and list images using conn.get_all_images

import sys
from boto.ec2.connection import EC2Connection

conn = EC2Connection('access key','secret key')
inst = conn.get_all_instances()
for i in inst:
    print i

i tried it from python command line and it also has the same result

>>>import sys
>>>from boto.ec2.connection import EC2Connection
>>>conn = EC2Connection('access key','secret key')
>>> instances = conn.get_all_instances()
>>> instances
[]
>>>

any idea what the problem could be? thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:26:53+00:00Added an answer on May 27, 2026 at 4:26 pm

    i was looking at the wrong region, fixed when i used the correct one..

    regions = boto.ec2.regions(aws_access_key_id=AWS_ACCESS_KEY_ID,aws_secret_access_key=AWS_SECRET_ACCESS_KEY,is_secure=False)
    eu = regions[0]
    conn_eu = eu.connect(aws_access_key_id=AWS_ACCESS_KEY_ID,aws_secret_access_key=AWS_SECRET_ACCESS_KEY)
            inst = conn_eu.get_all_instances()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I add steps to a waiting Amazon EMR job flow using boto
I am writing a script using boto and Python to automatically launch an Amazon
How can I create a folder under a bucket using boto library for Amazon
I'm using boto in Python to automate some of my EC2 workflow. The issue
I'm using the Python library boto to connect to Amazon S3 and create buckets
Using PyObjC , you can use Python to write Cocoa applications for OS X.
Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters
I am using python's boto script, and I haven't touched in a long time
http://boto.s3.amazonaws.com/s3_tut.html#setting-getting-the-access-control-list-for-buckets-and-keys I'm using boto. My friend says it's possible to just generate a temporary
I've been using fabric and boto to start up new ec2 hosts for some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.