Category "boto3"

DiskSpaceUtilization metrics for EC2 instance in python boto script showing empty response

I want to get the datapoints for DiskSpaceUtilization metrics but the response for get_metrics_statitics is empty. The get_metrics_statitics function works per

How to use Boto3 pagination

BACKGROUND: The AWS operation to list IAM users returns a max of 50 by default. Reading the docs (links) below I ran following code and returned a complete set

Why is AWS telling me BucketAlreadyExists when it doesn't?

I'm in the process of automating the setup of some AWS services using AWS SDK for Python (boto3) and running into a very simple problem of creating an S3 bucket

How to use boto3 (or other Python) to list the contents of a _RequesterPays_ S3 bucket?

You can download a file via boto3 from a RequesterPays S3 bucket, as follows: s3_client.download_file('aws-naip', 'md/2013/1m/rgbir/38077/{}'.format(filename

Download a folder from S3 using Boto3

Using Boto3 Python SDK, I was able to download files using the method bucket.download_file() Is there a way to download an entire folder?

Exclude headers from s3v4 signature calculation

We are using an onPrem S3 compatible storage server in an intranet network and we want to expose this intranet url to internet so we used a ReverseProxy with a

Retrieving subfolders names in S3 bucket from boto3

Using boto3, I can access my AWS S3 bucket: s3 = boto3.resource('s3') bucket = s3.Bucket('my-bucket-name') Now, the bucket contains folder first-level, which

The security token included in the request is expired

I have a script that pulls a lot of metrics from Cloudwatch for our own internal reports. The script iterates all of the EC2 instances in a specific region and

how can i get Organization names for the fetched aws organizations for a parent id?

I fetched the organization list and the response includes the organization ids and the organization type. I want to fetch the organization names because my logi

IAM Role + Boto3 + Docker container

As far I as I know, boto3 will try to load credentials from the instance metadata service. If I am running this code inside a EC2 instance I expected to hae no