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 "integ-tests-.*" --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.*"
EC2 AMIs
aws-toolbox ec2 delete-ami \
--region "eu-.*" \
--owners 319414405305 \
--name ".*aws-parallelcluster.*" \
--before 2023-06-01T00:00:00.000Z
EC2 Snapshots
Delete (emptying, if necessary) all snapshots whose name matches the provided regular expression:
aws-toolbox ec2 delete-snapshot \
--region "eu-.*" \
--owners 319414405305 \
--description "Copied for DestinationAmi .*"
CloudFormation Stacks
Delete all stacks whose name and region matches the provided patterns and have been created before given datetime:
aws-toolbox cloudformation delete-stacks \
--region "us-.*" \
--name "aws-parallelcluster-3-8-0-amzn2.*"
--before 2023-12-01T00:00:00.000Z
Metadata
Release files for aws-toolbox 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aws_toolbox-0.0.6.tar.gz | 12.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aws_toolbox-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.2 kB
Release files / aws_toolbox-0.0.6.tar.gz
| Download URL | aws_toolbox-0.0.6.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a78fbb36db9a479956a02688703814de9c2ee74b02adb315404aecff9494911
|
|
BLAKE2b-256 checksum How to use checksums |
a2b011be2f6457bdc410002695fe7a16905412dab41bc3899ed02322b82a3e31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|
Release files / aws_toolbox-0.0.6-py3-none-any.whl
| Download URL | aws_toolbox-0.0.6-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3dd7bad5329179cd1b97fe2739f5b86591d777d4f9c4dce1593966362a3ac2df
|
|
BLAKE2b-256 checksum How to use checksums |
313297a5b9d12ffc5ccee89b966df98229af48a543daf746cc5b34dc2f4fe6bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|
Security for aws-toolbox 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.