I hereby claim:
- I am variableexp0rt on github.
- I am thehappypeasant (https://keybase.io/thehappypeasant) on keybase.
- I have a public key ASBi14O3Nf1jQmpc-L5peCbK-7z4fTultRG8zXJoxY5ulwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import json | |
| import botocore | |
| import boto3 | |
| import pandas | |
| from datetime import datetime, timezone, timedelta | |
| # https://github.com/boto/boto/issues/ | |
| # https://austincloud.guru/excluding-disabled-regions/ | |
| import boto3 | |
| import sys | |
| import os | |
| import json | |
| import argparse | |
| #if you need to change the default profile export the profile to the env var AWS_PROFILE before running this script OR | |
| # change like so boto3.setup_default_session(profile_name='<profile name>') | |
| parser = argparse.ArgumentParser(description='Process flags.') |
| import asyncio | |
| import boto3 | |
| import boto3.session | |
| import threading | |
| import time | |
| from pprint import pprint | |
| from botocore import exceptions | |
| from datetime import timedelta, timezone, datetime | |
| def getAvailableRegions(service): |
| import boto3 | |
| import boto3.session | |
| import threading | |
| import time | |
| import concurrent.futures | |
| from pprint import pprint | |
| from botocore import exceptions | |
| from datetime import timedelta, timezone, datetime | |
| def getAvailableRegions(service): |
| import boto3 | |
| from pathlib import Path | |
| from botocore.exceptions import ClientError | |
| client = boto.client('iam') | |
| def disable_key(username): | |
| try: | |
| res1 = client.list_access_keys(UserName=username) |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "sync" | |
| "time" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/endpoints" |
| import boto3 | |
| from boto3.s3.transfer import S3Transfer | |
| from boto3.s3.transfer import TransferConfig | |
| from concurrent.futures import ThreadPoolExecutor | |
| from concurrent import futures | |
| import logging | |
| from datetime import datetime, timedelta | |
| boto3.set_stream_logger('boto3.resources', logging.INFO) |
| import boto3 | |
| import botocore | |
| from botocore.exceptions import ClientError | |
| ACCOUNT = '' | |
| ## Check security groups for any egress or ingress rules that have a CIDR range of 0.0.0.0/0 for any protocol | |
| ## Have included all protocols, as filter match is logical OR and wouldn't filter all |
| import boto3 | |
| import botocore | |
| import argparse | |
| import sys | |
| ############################################################### | |
| # Usage: change IdentityStoreId to suit your use case # | |
| # change the Attribute Value to a list of all users # | |
| # change InstanceArn to suit your usecase # |