FAQ Database Discussion Community


AttributeError: 'ResultSet' object has no attribute 'create_alarm'

python,amazon-web-services,boto,amazon-sns
I have a topic with name "topic" that I want to monitor with cloudwatch. And using cloudwatch, I want that when this topic "topic" have NumberOfMessagesPublished > 100 I want to send a notification to other topic with name "cloudwatchSNS". Im trying to do this with code below, but Im...

How to get list of all databases and run query on it in python

python,mysql,boto
I want to print all databases of 1 RDS and run a select query on it. Here, I am able to print all databases but want to run SELECT query on each database. Please suggest solution for it? import boto.rds import sys import os import MySQLdb conn = boto.rds.connect_to_region("ap-southeast-1", aws_access_key_id='xxxx',aws_secret_access_key='xxx')...

Pyboto: remove an ip based rule from a security group

amazon-web-services,boto
I've been reading through the Pyboto documentation and whilst I know how to add an ip-based rule to a security group, I have not been able to find a method remove an ip-based rule. The method remove_rule on a security group object, doesn't update the security group on the ec2...

import in a.py affects module lookup in b.py?

python,python-2.7,boto
Here's a test example involving boto (although I don't think this is boto specific). First create a simple python file: echo "import boto; print boto.ec2.RegionData" > bad.py Then if you try to import this module, you get an error: python -c "import bad" AttributeError: 'module' object has no attribute 'ec2'...

default subnets error for Elasticache creation using Ansible

amazon-web-services,boto,ansible,ansible-playbook,amazon-elasticache
I am trying to create an elastic cache cluster using Ansible. I have a default subnet group already created in my VPC. After executing the below script I am getting an error of default subnet group not being present. - name: Creating Elastic Cache Queue local_action: module: elasticache region: us-east-1...

Python (boto) TypeError launching Spark Cluster

amazon-ec2,apache-spark,boto
Following is attempt to launch cluster with ten slaves. 12:13:44/sparkup $ec2/spark-ec2 -k sparkeast -i ~/.ssh/myPem.pem \ -s 10 -z us-east-1a -r us-east-1 launch spark2 Here is output. Note that the same command had been successful with the February Master code. Today I had updated to latest 1.4.0-SNAPSHOT Setting up security...

EC2 Instance without any attached Volume?

python,amazon-web-services,amazon-ec2,boto,aws-ec2
Is it Possible to have instances without any volume(root-device or attached volume)? Lets say the instance_ids are [i-120cd3fe,i-23e46634] Is it possible that any Instances are present without any attached volume in AWS? conn=get_ec2_connection(region=region) instances = conn.get_only_instances(instance_ids=instance_ids) volumes_list=[] for instance in instances: dev_mappings = instance.block_device_mapping for block_device in dev_mappings.keys(): volume_id =...

Reading part of a file in S3 using Boto

python,python-2.7,amazon-s3,cloud,boto
I am trying to read 700MB file stored in S3. How ever I only require bytes from locations 73 to 1024. I tried to find a usable solution but failed to. Would be a great help if someone could help me out....

get aws_secret_access_key to store in ~/.boto

python,amazon-web-services,boto
Im trying to store in ~/.boto file the user aws_access_key_id and aws_secret_access_key keys. I'm already storing aws_access_key_id correctly, but now, I don't know how can I get aws_secret_access_key so I can store it in ~/.boto file. Do you know how can I get aws_secret_access_key? import os import boto.iam.connection username =...

Some doubts using cloudwatch metrics for dynamodb

amazon-web-services,amazon-dynamodb,boto
I created a dynamodb table. And now Im trying to create a cloudwatch alarm to send a sns notification when tables request exceed 80% for 1 hour (as it appear when we create a dynamodb table using aws managment console). My doubts are: First: I need to create two cloud...

How do I Start/Stop AWS RDS Instances using Boto?

python,amazon-web-services,boto,amazon-rds,rds
I had a question about Amazon RDS. I wanted to Start/Stop AWS RDS Instances at my need . AWS Console does not allow me to do so. The Only method I know is to take a snapshot of the rds instance and delete it and when I need it then...

dynamodb boto put_item of type Map “M”

python,django,amazon-web-services,amazon-dynamodb,boto
Has anyone successfully performed a put operation of a map into dynamodb using boto (python)? I basically need to put a json object. So far I have only been able to put it as json string but I cannot find an example of inserting a map anywhere. Thanks a lot....

Trying to connect to AWS Kinesis from boto.kinesis; us-west-1 doesn't work, but other regions do

boto,amazon-kinesis
I'm using boto to connect to ASW Kinesis. For some reason, the connections to "us-west-2" and "us-east-1" work, but not for "us-west-1": from boto import kinesis con = kinesis.connect_to_region("us-west-1") print con # None con = kinesis.connect_to_region("us-west-2") print con # KinesisConnection:kinesis.us-west-2.amazonaws.com con = kinesis.connect_to_region("us-east-1") print con # KinesisConnection:kinesis.us-east-1.amazonaws.com The credentials are...

Its not possible print items that have empty fields in dynamodb?

amazon-web-services,amazon-dynamodb,boto
I have this code below to scan all items in my users table and then print the name of each item. And Im printing the field name of each item, and its working correctly when all items have the field name filled. But when some item dont have the field...

Infinite loop when streaming a .gz file from S3 using boto

python,amazon-s3,gzip,boto
I'm attempting to stream a .gz file from S3 using boto and iterate over the lines of the unzipped text file. Mysteriously, the loop never terminates; when the entire file has been read, the iteration restarts at the beginning of the file. Let's say I create and upload an input...

storing files in s3 using Python boto

python,file,amazon-s3,boto
I have a list of dicts (ex. [{'a': 'b', 'c': 'd'}, {'e': 'f', 'g': 'h'}]) and I want to store this in s3 using Python boto package. One way is to iterate through the list, writing to a file object f, such that each line of f is a json...

Does Boto retry on failed md5 checks?

python,amazon-s3,boto
The boto config has a num_retries parameter for uploads. num_retries The number of times to retry failed requests to an AWS server. If boto receives an error from AWS, it will attempt to recover and retry the request. The default number of retries is 5 but you can change the...

How do I add or remove security groups from ENIs using Boto?

python,amazon-web-services,boto
I'm using the Boto Python interface to manage my EC2 software-defined networking and I'm writing a method to manage Security Groups on Elastic Network Interfaces (ENIs). I don't know how to tell EC2 to add or remove security groups to/from an ENI. My approach thus far is essentially: import boto...

Django and S3 - static URL won't change

python,django,amazon-s3,boto,django-storage
I managed to set my S3 as a subdomain static.domain.com (using CNAME and bucket name the same as subdomain).Now I'd like to amend my django settings to use this URL. I use django-storages and can't make it work. I set STATIC_URL to http://static.domain.com. When I use {{ STATIC_URL }} in...

Does Boto support the map and list DynamoDB types, and JSON document type?

amazon-dynamodb,boto
Could someone, please, confirm whether or not at present (Apr. 2015) Boto supports the DynamoDB JSON document, and map and list datatypes? If yes, could someone provide simple code examples?...

Is there a way to download objects from Amazon S3 based on certain tags?

python,amazon-s3,boto
I am trying to download objects (files) from Amazon-S3 but the problem that I am facing is keeping track of which objects have been downloaded as I have plenty of objects in each bucket and they increase with each day. I have been looking for a way so that I...

Check Domain Availability using Boto Route53

python,amazon-web-services,boto,amazon-route53
I love using Boto API for Amazon Web Services but now I'm not capable of finding where is the error. I'm using AWS for check domain availability and I have created a script in Python that includes the class at this link: https://www.codatlas.com/github.com/boto/boto/develop/boto/route53/domains/layer1.py?line=67 I call the method check_domain_availability() on passing...

Unable to access files from public s3 bucket with boto

python,amazon-web-services,amazon-s3,boto
I recently created a new AWS account (let's call it "Account A") and created an S3 bucket in this account (let's call it "bucketa"), uploading a file foo.txt. Following advice from the internet, I set up what I believe to be the most permissive bucket policy possible (it should allow...

using boto to upload csv file into Amazon S3 bucket

python-2.7,csv,amazon-web-services,amazon-s3,boto
I am trying to upload csv file to my existing Amazon S3 bucket named 'my-bucketname' in python using boto I get an error 'NoneType' object has no attribute 'set_contents_from_filename' So i guess I am not able to establish connection properly with S3 bucket. Could anyone help me with this? Here...

How to implement a priority queue using SQS(Amazon simple queue service)

python,boto,priority-queue,amazon-sqs
I have a situtaion when a msg fails and I would like to replay that msg with an highest priority using python boto package so he will be taken first. If I'm not wrong SQS queue does not support priority queue, so I would like to implement something simple. Important...

Boto: Dynamically get aws_access_key_id and aws_secret_access_key in Python code from config?

python,python-3.x,amazon-web-services,boto
I have my aws_access_key_id and aws_secret_access_key stored in ~/.boto and was wondering if there was a way for me to retrieve these values in my python code using Boto as I need to insert them in to my SQL statement to to copy a CSV file from S3.

Is it possible to check if a bucket name already exists?

python,amazon-web-services,amazon-s3,boto
I have a method that needs a name to create a new bucket. And I want to show a message "bucket name already exist" if the bucket name already exist. It is possible to check if a bucket name already exists? def createBucket(bucketName): c = boto.s3.connect_to_region("us-east-1") # if bucketName exist:...

Amazon AWS Cognito and Python Boto3 to establish AWS connection and upload file to Bucket

python,amazon-web-services,amazon-s3,boto,boto3
I'm trying to use the AWS cognito service to authenticate and upload a file. I have been provided my regionType, identityPool, AWS account ID, and UnAuthRole. I also know the production and development bucket names. I think I am setting the AWS Access Key and AWS Secret Key... I want...

MTurk Answer with formatted text

python,boto,mechanicalturk
I have the following current code to create an answer selection: q1_answer_options=[('No URL exists', 0), ('http://www.imdb.com/name/nm2271332/', 1), ('http://www.imdb.com/title/tt0460987/', 2), ('http://www.imdb.com/title/tt1450653/', 3), ('http://www.imdb.com/title/tt1438289/', 4)] fta1 = SelectionAnswer(style='radiobutton', selections=q1_answer_options) For example: # Currently is this <Selection> <SelectionIdentifier>0</SelectionIdentifier> <Text>No URL Exists</Text> </Selection> # I want it to be...

Error on s3 file upload with python

python,amazon-s3,boto
Trying to upload an image to a bucket on s3 amazon. The image is uploaded via form and the image is stored in 'file': file = request.files['file'] I also try to rename it as 'filename' which holds the id of the user uploading the image. My app runs on Heroku...

AmazonS3 - connecting with Python Boto according specific permissions

python,amazon-s3,boto
I am trying to connect Amazon S3 via Boto 2.38.0 and python 3.4.3. The S3 account is owned by another company and they grants just these permissions : "Statement": [ { "Effect": "Allow", "Action": "s3:ListBucket", "Resource": "arn:axs:s3:::GA-Exports", "Condition":{ "StringLike": { "s3.prefix": "Events_3112/*" } } },{ "Effect": "Allow", "Action": [ "s3:GetObject",...

AWS boto - Instance Status/Snapshot Status won't update Python While Loop

python,amazon-web-services,boto
So I am creating a Python script with boto to allow the user to prepare to expand their Linux root volume and partition. During the first part of the script, I would like to have a While loop or something similar to make the script not continue until: a) the...

Boto S3 Key MD5 property not stored with key

python,amazon-s3,boto
I may have this wrong but I'm under the impression that when I use the set_contents_from_filename method, the MD5 hash of the file should be automatically calculated and stored as metadata with the key. Thus, when comparing files for possible overwriting, one only has to download the MD5 property of...

Unauthenticated bucket listing possible with boto?

amazon-s3,boto
I am using boto to interact with S3 buckets, and in some cases I just want to be able to list a publicly-readable bucket without passing my credentials. If I pass credentials, boto actually does not let me list the bucket even though it is publicly visible. Is it possible...

Failed to Create preset with Amazon Elastic Transcoder

amazon-web-services,amazon-ec2,amazon-s3,amazon,boto
I am using Amazon Elastic transcoder and boto library to create a preset. This code works for me without any problem: preset1=transcode.create_preset('preset', 'preset', 'mp4', {"Codec":"H.264", "CodecOptions":{"Profile":"baseline", "Level":"3", "MaxReferenceFrames":"3"}, "KeyframesMaxDist":"200", "FixedGOP":"false", "BitRate":"600", "FrameRate":"10", "Resolution":"640x480", "AspectRatio":"4:3" }, {"Codec":"AAC","CodecOptions":{"Profile":"AAC-LC"}, "SampleRate":"22050", "BitRate":"32", "Channels":"1" }, {"Format":"png",...

Ubuntu Installing Boto error

python,ubuntu,pip,boto
I've installed Python 2.7.9, and I'm trying to install Boto with pip install boto, but I receive this error: Collecting boto Using cached boto-2.36.0-py2.py3-none-any.whl Installing collected packages: boto Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 232, in main status = self.run(options, args) File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 347, in run...

Django ImageField url slow when using Amazon s3

python,django,heroku,amazon-s3,boto
In my Django Application currently running on Heroku I noticed that retrieving url's from ImageFields takes forever when hosting on s3. The application is written using Django Rest Framework. When I try to retrieve a list of objects that have image fields the response is so slow Heroku throws a...

How to find Unused Security Groups of all AWS Security Groups?

python-2.7,amazon-web-services,amazon-ec2,amazon-s3,boto
How to find all the used security groups attached with all the aws resources using Boto? Currently the following script which is giving only ec2 instances- sec_grps = ec2_conn.get_all_security_groups() for group in sec_grps: print group, " Instances attached ", group.instances() Is there any way to get all security groups which...

InstanceProfile is required for creating cluster - create python function to install module

python,hadoop,amazon-web-services,boto
Im using elastic mapreduce with boto. Everything was working fine, but since this week Im getting this error: InstanceProfile is required for creating cluster Im trying to fix this issue, and it seems that now we need to create a default role for elastic map reduce. And I did this...

How to change the IP address of Amazon EC2 instance using boto library

python,amazon-web-services,boto
How can I assign a new IP address (or Elastic IP) to an already existing AWS EC2 instance using boto library.

Boto S3 response Error : Access Denied

python,amazon-s3,boto
I am trying to upload large file to my bucket using parallel uploads. I came across the code from here and decided to use it as it is very simple and easy to understand. However running the program gives me an error of boto.exception.S3ResponseError: S3ResponseError: 403 Forbidden <?xml version="1.0" encoding="UTF-8"?>...

Save uploaded image to S3 with Django

python,django,amazon-s3,boto
I'm attempting to save an image to S3 using boto. It does save a file, but it doesn't appear to save it correctly. If I try to open the file in S3, it just shows a broken image icon. Here's the code I'm using: # Get and verify the file...

How to install custom Python package (boto) on Heroku server

django,python-2.7,heroku,boto
I'm currently using Heroku to host my Python/Django server, and an Amazon S3 to handle my resources. I have upgraded my Python version from 2.7.6 to 2.7.9, and am now confronted to a new problem: my S3 bucket name contains "." (dots), which causes troubles with boto (I did not...

AttributeError: 'NoneType' object has no attribute 'set_acl'

amazon-web-services,boto
Im trying to make a file public inside a bucket but Im having this error: AttributeError: 'NoneType' object has no attribute 'set_acl' Do you see something wrong in the code? def makeFilePublic(bucketName): s3 = boto.s3.connect_to_region('us-east-1') bucket = s3.get_bucket(bucketName) key = bucket.lookup('uploadedfiles/part-00000') key.set_acl('public-read') ...

Listing contents of a bucket with boto3

python,amazon-s3,boto,boto3
How can I see what's inside a bucket in S3 with boto3? (i.e. do an "ls")? Doing the following: import boto3 s3 = boto3.resource('s3') my_bucket = s3.Bucket('some/path/') returns: s3.Bucket(name='some/path/') How do I see its contents?...

Fab file, unable to remote curl a S3 .gzip file

python,boto,fabric
Instead of downloading a file on S3 to my local machine, I'm trying to download it to a remote machine in my fabfile. I've got some code with boto that finds the right key, and generates a url (which expires since its private), and then I try to issue something...

amazon cloudsearch - what is the order the bulk operations executed?

python,amazon-web-services,boto,amazon-cloudsearch
i was facing in issue on bulk operations, that took a little while until amazon support gave the solution for this, so if you are facing the same problem (maybe you even didnt know there is an issue on it), so this is the answer. Amazon API version: 2013-01-01 my...

How do I get all versions of an S3 key and undelete using boto?

amazon-s3,versioning,boto,undelete
I have had an S3 bucket for awhile but only now turned versioning on. Experimenting with it a bit trying to figure out what sort of detection protections I am getting with just the versioning on, without activating the "MFA delete" option. I uploaded a test file, then deleted it...

Get ec2 instance metadata from instance id

python,amazon-ec2,automation,boto
Hi I am using boto to spin up ec2 spot instance. I am having trouble getting instance hostname from instance id. there is easies way to do from instance itself "wget -q -O - http://169.254.169.254/latest/meta-data/instance-id" but I am looking for way to get metadata using instance id Any Help Thanks...

BoxUsage not updated

python,amazon-web-services,boto,amazon-simpledb
I'm trying to check the box usage before and after insertion of some records. However, the values are the same: 0.0000071759, which should be the box usage for listing the domain. Here's my code: import boto.sdb conn = boto.sdb.connect_to_region('us-east-1', aws_access_key_id='key_id', aws_secret_access_key='access_key') dom = conn.create_domain('test_01') domain_meta = conn.domain_metadata(dom) print domain_meta.BoxUsage for...

DynamoDBNumberError on trying to insert floating point number using python boto library

python,amazon-web-services,floating-point,amazon-dynamodb,boto
Code snippet : conn = dynamo_connect() company = Table("companydb",connection=conn) companyrecord = {'company-slug':'www-google-com12','founding-year':1991, 'randomlist' :[1,2,3,4,5], 'randomdict' : {'a':[1,2,3],'b':'something','randomnumber':10.55} } company.put_item(data=companyrecord) I am getting the following error: File "C:\Python27\lib\site-packages\boto\dynamodb2\items.py", line 329, in prepare_full final_data[key] = self._dynamizer.encode(value) File "C:\Python27\lib\site-packages\boto\dynamodb\types.py", line 279, in encode...

State 'boto_rds.present' is unavailable. Ec2/saltstack

amazon-web-services,amazon-ec2,boto,amazon-rds,salt-stack
Im trying to create a RDS instance using boto_rds.present, the code looks like: rds_instance_abc: boto_rds.present: - name: learn_rds1 - allocated_storage: 10 - storage_type: gp2 - db_name: abc_testing - db_instance_class: db.t2.micro - engine: MySQL - master_username: root - master_user_password: root - region: us-east-1} - keyid: fsdfsdfsdfs - key: fsdfsdfsfsdfsdfsfsdfs After salt-call...

Using group by in DynamoDB

python,amazon-web-services,amazon-dynamodb,boto
For a project I have to use DynamoDB(aws) and python(with boto). I have items with a date and I need to display the count grouped by date or by month. Something like by date of the month [1/2: 5, 2/2: 10, 3/2: 7, 4/2: 30, 5/2: 25, ...] or by...

Verify if a topic exists based on topic name

amazon-web-services,boto
I'm trying to verify if a topic exists based on topic name. Do you know if this is possible? For example I want to verify if topic with name "test" already exist. Below is what I'm trying but doesn't work because topicsList contains topicArns and not topicNames... topics = sns.get_all_topics()...

Retrieve distinct values from the hash key - DynamoDB

python,nosql,amazon-dynamodb,boto
I have a dynamodb table to store email attribute information. I have a hash key on the email, range key on timestamp(number). The initial idea for using email as hash key is to query all emails by per email. But one thing I trying to do is retrieve all email...

Handle large output - Python [closed]

python,amazon-s3,boto
I am using the python boto library to access files in a S3 bucket. i have all the output sorted out and works fine. however I dont want to display all the files on the terminal at once. Say if a person has 800 files and 300 folders in their...

How do I change the nameservers for my AWS Route53 Registered Domain using boto?

python,amazon-web-services,boto,amazon-route53
I'm unable to use the AWS boto API to change name servers for my AWS Route53 Registered Domain. In the following Python code, I get boto.exception.JSONResponseError: JSONResponseError: 400 Bad Request {u'Message': u'Expected null', u'__type': u'SerializationException'} even though I'm using the API as documented, passing a list of strings such as...

Can I undelete/access legacy S3 key that was created before bucket switched to versioning?

amazon-s3,key,versioning,boto,undelete
I have an S3 bucket that has a bunch of legacy files. I just switched on versioning and am trying to figure out what sort of deletion protection this gives me for the legacy files, compared to new files uploaded since after the switch. Here's some sample code: import boto...

Python maximum recursion depth exceeded when installing a module

python,boto,python-module,python-install
I got maximum recursion depth exceeded when installing gcs-oauth2-boto-plugin-1.4 on my mac. I downloaded and unzipped the package, ran sudo python setup.py install under the installation directory, pretty standard stuff that you would do when install a Python module. I was doing it in a virtual environment (virtualenv). I did...

Why is this python boto S3 multipart upload code not working?

python,amazon-web-services,amazon-s3,multiprocessing,boto
I am trying to upload a 10 GB file to AWS S3, and someone said to use S3 Multipart Upload, so I stumbled upon someone's github gist: import os import sys import glob import subprocess import contextlib import functools import multiprocessing from multiprocessing.pool import IMapIterator from optparse import OptionParser from...

get_bucket() gives 'Bad Request' for S3 buckets I didn't create via Boto

python,amazon-s3,boto
I'm using Boto to try to get a bucket in Amazon S3, but it returns Bad Request when I use get_bucket() for some of the buckets. I'm starting to wonder if this is a bug with Boto, since I can get the bucket using get_all_buckets(). >>> from boto.s3.connection import S3Connection...

how to add inbound rules for AWS EC2 security group for all traffic

amazon-web-services,amazon-ec2,boto
i am trying to add inbound rules for AWS EC2 security group for all traffic. i am using python boto module to do so. i already did add rules for tcp|udp|icmp protocol. But cant add rules for all traffic. how should i do it?...

boto.sqs: read and write SQS messages

boto,messages,amazon-sqs
I would like to read messages from one que and write them to another que. But, the message class is custom format and I am not sure how to write a message class and import it. That is, the structure follows as: import boto.sqs #read messages from one que conn...

Show the correct IAM user's sign-in link

python,amazon-web-services,boto,amazon-iam
I am trying to create IAM users and after creating an user, I want to show the URL that user can use to login in AWS management console. I am trying to do this with the code below, but I am having an issue. Every time I create an user...

Authenticating using .boto google cloud storage api

python-2.7,google-cloud-storage,boto
Having issues with the google cloud storage api. followed the setup from here: https://cloud.google.com/storage/docs/gsutil_install Here is my code, it should just print the files in the bucket. This structure worked with an earlier version of the oauth2plugin but cannot get it to work with the new gcs modules. from gcs_oauth2_boto_plugin...

Boto + Mechanical Turk: how do you get all fields?

python,api,amazon,boto,mechanicalturk
For the time being, I want to create HITs manually, and retrieve them using mturk's API. I'm using Boto to retrieve the assignments, but the problem is I can only see information filled in by the workers. I also want to see the original information that I provided for the...

Processing Messages in Amazon

python,amazon-web-services,amazon-ec2,boto,amazon-sqs
It can be a silly question, but I have a big mental block right now. I can't see the connection between my SQS queue and the EC2 instances that will process the message. That is to say: a client completes a form on the web page (this web page is...

EC2ResponseError: 401 Unauthorized using Saltstack boto_vpc module

amazon-web-services,amazon-ec2,boto,salt-stack,amazon-vpc
I'm trying to create a vpc using Saltstack and boto_vpc module. This is my state: vpc_create: module.run: - name: boto_vpc.create - cidr_block: '10.0.0.0/24' - vpc_name: 'myVpc' - region: 'us-east-1' - key: 'ADJJDNEJFJGNFKFKFKIW' - keyid: 'SJDJNFNEJUWLLLCLCLENNRBFLGSLSLKEMFUHE' The keys that I'm using are correct but I got this error: [INFO ] Running...

Can't access s3 buckets after creating instance using IAM profile

ruby,amazon-web-services,amazon-s3,boto,iam
I am trying to access some s3 buckets from an instance created applying the IAM profile that allows full access to those s3 buckets. I am able to carry out the required operations using aws cli. However, my application is written in Ruby and makes use of fog gem. Using...

Python Boto EC2 find instance given its IP address

python,amazon-ec2,boto
Using boto in Python, how can I find the boto.ec2 instance object given an IP address?

python and boto : 403 accessDenied

python,amazon-s3,boto
import boto from boto.s3.connection import S3Connection from boto.s3.connection import OrdinaryCallingFormat conn = S3Connection(access_key, secret_key, calling_format=OrdinaryCallingFormat()) bucket = conn.get_bucket(file_name) print(bucket.name) And the console display: raise err boto.exception.S3ResponseError: S3ResponseError: 403 Forbidden I have seen many post about the same problem but I can't figure out how to solve it... note that I...

How to tell if boto is using SSLv3 or TLS?

python,ssl,amazon-s3,boto,sslv3
Amazon is sunsetting SSLv3 support soon, and I am trying to verify that boto is utilizing TLS. Is there a good way to verify this? Or is there a good test to show TLS utilization?

Who created an Amazon EC2 instance using Boto and Python?

python,amazon-web-services,amazon-ec2,boto,amazon-cloudtrail
I want to know who created a particular instance. I am using Cloud Trail to find out the statistics, but I am not able to get a particular statistics of who created that instance. I am using Python and Boto3 for finding out the details. I am using this code-...