Boto3 Code Samples



Filters


Ramya
Lambda code for Creating VPC flow log automatically when a VPC is created
Ramya | 5 years, 7 months
from __future__ import print_function
import json
import os
lambda boto3 aws
Ramya
Deleting Amazon EBS snapshots older than n days based on tags
Ramya | 5 years, 7 months
import sys
import boto3
import datetime
python aws boto3
Ramya
PYTHON: To download AWS ELB access log files from S3 bucket based on last modified time
Ramya | 4 years, 9 months
import boto3
import datetime
from datetime import datetime,timedelta,date
Before using this script, you need to set up AWS CLI first as below: ubuntu@ip-172-31-46-2:~$ aws
python boto3 s3
Ramya
PYTHON: AWS IAM password reset
Ramya | 4 years, 8 months
import boto3
client = boto3.client('iam')
UserName=input("Enter UserName:")
boto3 python
How to get the list of available files in S3 instead of getting the folders using boto3?
Reshma | 4 years, 11 months
import boto3

client = boto3.client('s3', aws_access_key_id="aws_access_key",
boto3 python list of files in s3
Ramya
Removing IAM Users from IAM group
Ramya | 5 years, 7 months
def remove_user():
    import boto3
    client = boto3.client('iam')
boto3 aws python
Listing contents of a bucket with boto3
Reshma | 5 years, 2 months
import boto3

_BUCKET_NAME = 'Bucket_name'
boto3 files s3 bucket
Crating a bucket in S3 using boto3
Reshma | 5 years, 2 months
import boto3
sess = Session(aws_access_key_id='aws_key',
            aws_secret_access_key='aws_se
boto3 s3 create bucket