Questions tagged [boto]

boto is an open-source Python Interface to Amazon Web Services

Boto is a Python package that provides an interface to Amazon Web Services. The code is hosted on github.com (https://github.com/boto/boto) and the documentation can be found at http://docs.pythonboto.org.

Boto supports the following services:

  • Compute
    • Amazon Elastic Compute Cloud (EC2)
    • Amazon Elastic Map Reduce (EMR)
    • AutoScaling
    • Elastic Load Balancing (ELB)
  • Content Delivery
    • Amazon CloudFront
  • Database
    • Amazon Relational Data Service (RDS)
    • Amazon DynamoDB
    • Amazon SimpleDB
  • Deployment and Management
    • AWS Identity and Access Management (IAM)
    • Amazon CloudWatch
    • AWS Elastic Beanstalk
    • AWS CloudFormation
  • Application Services
    • Amazon CloudSearch
    • Amazon Simple Workflow Service (SWF)
    • Amazon Simple Queue Service (SQS)
    • Amazon Simple Notification Server (SNS)
    • Amazon Simple Email Service (SES)
  • Networking
    • Amazon Route53
    • Amazon Virtual Private Cloud (VPC)
  • Payments and Billing
    • Amazon Flexible Payment Service (FPS)
  • Storage
    • Amazon Simple Storage Service (S3)
    • Amazon Glacier
    • Amazon Elastic Block Store (EBS)
    • Google Cloud Storage
  • Workforce
    • Amazon Mechanical Turk
  • Other
    • Marketplace Web Services
2279 questions
0
votes
1 answer

How do I store environment variables both locally and not to have to change code when deploying on Heroku in Django

I have a Django project I have been working on offline and now I have hosted it on Heroku and it works well on Heroku but fails on my local machine with this error. File "/usr/lib/python3.9/os.py", line 679, in __getitem__ raise KeyError(key)…
iamafasha
  • 592
  • 5
  • 18
0
votes
0 answers

Getting boto.exception.BotoServerError: BotoServerError: 400 Bad Request

Getting boto.exception.BotoServerError: BotoServerError: 400 Bad Request while trying to create a A record in route53 in AWS. We are performing this operation as part of the docker run using ansible-controller. Below is the debug log for the…
0
votes
0 answers

Uploading distant file on AWS using Boto : [WinError 123] La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte

I am trying to upload a distant (generated) file on AWS using Boto/Python : s3_client = boto3.client('s3') file_name =…
LOIC
  • 9
  • 1
0
votes
0 answers

"Certificate not yet issued" response from boto.get_certificate

I requested a publicly signed SSL certificate from Amazon Certificate Manager "ACM" services yesterday. The certificate should be requested/pulled by boto library methods for eventual use on our webservers. Here is the code being used: import…
StephenBoesch
  • 46,509
  • 64
  • 237
  • 432
0
votes
2 answers

Boto run_instances() - unexpected keyword argument 'tag_specifications'

I am trying to start an aws instance in via a python3 script. It works fine, but am now trying to add some tags to the instance with no luck. I am trying the following, but get a "unexpected keyword argument 'tag_specifications'" error. import…
Phil
  • 157
  • 10
0
votes
1 answer

Boto3 Moto bucket not found after mocking it

I am trying to used Boto3 moto's mocks3 utility to test my code that connects to s3, the function basically list down all the folders with partition date and returns the latest one. I see no exception in mocking s3 buckets however the test code…
Explorer
  • 1,315
  • 2
  • 22
  • 52
0
votes
1 answer

Boto Script for user deletion with time constraint

I am working on a boto script that will delete the user after a time period of 20 minutes. I am not able to figure out the approach for the solution.So far I can delete the user without a time period constraint using this script. import boto3 …
user14226172
0
votes
1 answer

A legacy parsing error in Boto3 script due to MalformedPolicyDocument

I am trying to create an IAM user on AWS and attach, it to a User group with IAM policies,but I am getting "An error occurred (MalformedPolicyDocument) when calling the CreatePolicy operation: The policy failed legacy parsing" error, I am not sure…
user14226172
0
votes
0 answers

How to filter AWS roles by tags in boto3?

I'm trying to get list of roles with special tags Python version 3.9 Boto3 version 1.16.25 There is my code iam = boto3.client('iam', region_name='us-east-1') roles = iam.list_roles()["Roles"] print(roles) Result: { "Path":"/", …
0
votes
0 answers

Set the read timeout in boto.s3.S3Connection

We use boto.s3.S3Connection (boto's version is 2.38.0) to upload and read data to/from S3 buckets. Let's say the code for reading data is something like this: from boto.s3 import S3Connection from boto.s3.keyfile import KeyFile conn =…
Anton Koval'
  • 3,824
  • 4
  • 26
  • 40
0
votes
1 answer

Create RDS database using ANSIBLE

I was wondering if anyone could help me? I'm trying to provision a database rds using ansible. I have created this and when I tried to execute nothing happens: - name: create-rds-intance hosts: localhost connection: local gather_facts :…
amsou
  • 1
  • 3
0
votes
1 answer

Arguments for jar file incorrect - spinning up EMR cluster using Boto3

I am writing a Python code using library Boto3 to spin up an EMR cluster. During the Steps part, I have my jar file listed. This jar file is a Scala script that takes arguments like this: -l 'some_vaue' - s 'some_value' How can I correctly input…
Hana
  • 973
  • 2
  • 15
  • 30
0
votes
0 answers

cannot delete the HIT which is available on the web-site

I keep receiving mail about my HIT not being available, though I considered it to be deleted. I've checked it on https://worker.mturk.com/ and it is still available. I've checked heroku: no servers running. I've tried API: client =…
0
votes
3 answers

AWS Lambda put_object function not sending file to destination s3 bucket

I'm invoking a Lambda function to send a .csv file from an email to a destination s3 bucket which I specify in said function. The invocation is triggered by Event type: ObjectCreatedByPut when the email is recieved by the incoming s3 bucket. I see…
jimiclapton
  • 568
  • 2
  • 6
  • 25
0
votes
0 answers

How to optimise Images and Videos while Uploading with Django to Amazon S3?

I have a Django Project where my users can upload images/videos. I am using Amazon S3 storage for static and media files via boto to upload images and videos directly to Amazon S3. I want to optimise the image and videos both either on the fly or…
Saksham
  • 5
  • 5
1 2 3
99
100