Skip to main content

AWS Toolbox

Project description

AWS Toolbox

AWS Toolbox extends the AWS CLI commands with some handy solutions, such as executing a command on every region and resources matching a given pattern.

Installation

pip install aws-toolbox

Usage

DryRun Mode

Every command can be executed in dryrun mode, by adding the option --dryrun. With dryrun mode, the actual AWS operations will be logged but not executed.

For example:

~> aws-toolbox s3 delete-bucket --name "test-.*" --dryrun
INFO:aws_toolbox.commands.s3.delete_bucket:Deleting Buckets with name pattern integ-tests-.*, dryrun True
INFO:botocore.credentials:Found credentials in shared credentials file: ~/.aws/credentials
INFO:aws_toolbox.commands.s3.delete_bucket:The following 2 buckets would be deleted, but dryrun mode is enabled and nothing will be done: test-1, test-2, test-3

S3

Delete (emptying, if necessary) all buckets whose name matches the provided regular expression:

aws-toolbox s3 delete-bucket --name "cdk-hnb659fds-assets-319414405305-(?\!us-east-1|eu-west-1)"

Secrets Manager

List all secrets whose name and regions match the provided regular expressions:

aws-toolbox secretsmanager list-secrets --region "us-west-.*" --name ".*"

Delete all secrets whose name and regions match the provided regular expressions:

aws-toolbox secretsmanager delete-secrets --region "us-west-.*" --name "Sample.*"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws-toolbox-0.0.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

aws_toolbox-0.0.2-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file aws-toolbox-0.0.2.tar.gz.

File metadata

  • Download URL: aws-toolbox-0.0.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.0

File hashes

Hashes for aws-toolbox-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f63b5219877910caf27c46876d15dd404dab59c802102266f496f4cc7ff65abf
MD5 fae4eadd84ec691f3727f933f78c29fe
BLAKE2b-256 a50e03ff5e4c1c00a41ddecbd8fc65e2ca7944173ba3795125cf29362e0e668a

See more details on using hashes here.

File details

Details for the file aws_toolbox-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: aws_toolbox-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.0

File hashes

Hashes for aws_toolbox-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d5b540e43d370a897fff30a585e37194f10cdc0f6abab89dde3a07bb38749861
MD5 7d9731c9cd3cbe888a71d37316b09dbc
BLAKE2b-256 9123a27cfb56855352c009ce95cb50c1a1cfc958e3c55a3518079d5bdd6ed2cd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page