def run(dry_run=False, thread_pool_size=10, enable_deletion=False, io_dir='throughput/'): aws = AWSApi(thread_pool_size) if dry_run: aws.simulate_deleted_users(io_dir) aws.map_resources() aws.delete_resources_without_owner(dry_run, enable_deletion)
def run(dry_run, thread_pool_size=10, io_dir='throughput/'): accounts = [a for a in queries.get_aws_accounts() if a.get('garbageCollection')] settings = queries.get_app_interface_settings() aws = AWSApi(thread_pool_size, accounts, settings=settings) if dry_run: aws.simulate_deleted_users(io_dir) aws.map_resources() aws.delete_resources_without_owner(dry_run)
def run(dry_run=False, thread_pool_size=10, enable_deletion=False, io_dir='throughput/'): accounts = queries.get_aws_accounts() settings = queries.get_app_interface_settings() aws = AWSApi(thread_pool_size, accounts, settings=settings) if dry_run: aws.simulate_deleted_users(io_dir) aws.map_resources() aws.delete_resources_without_owner(dry_run, enable_deletion)