Ape AWS KMS
Ape plugin to make transactions through AWS KMS
Dependencies
- Python 3 version 3.10 or greater
Installation
via pip
You can install the latest release via pip:
pip install ape-aws
via ape
You can also install via ape:
ape plugins install aws
via source
You can clone the repository and install for development:
git clone https://github.com/ApeWorX/ape-aws.git
cd ape-aws
uv sync --group dev
uv run prek install
Quick Usage
Using CLI tool
List commands:
ape aws -h
See logged in profile (useful for debugging auth in containers)
ape aws whoami
To create a new user (recommended for cloud usage)
ape aws users new USER
To delete this user (WARNING this is permanent)
ape aws users remove USER
Create an access key for this user (WARNING don't lose generated token)
ape aws users tokens new USER > .env.USER
To create a new Ethereum signing key (recommended to generate)
ape aws keys generate KEY
To schedule this signing key for deletion (WARNING takes 30 days)
ape aws keys remove KEY
To grant your user access to the signing key (don't forget to do this!)
ape aws keys grant KEY -u USER
IPython
First, create a KMS key with the CLI tool
ape console
In [1]: kms_signer = accounts.load("KEY")
In [2]: kms_signer.sign_message("12345")
Out[2]: <MessageSignature v=27, r=0x..., s=0x...>
Now to test your new IAM user's access, you can do the following
env $(echo .env.USER | xargs) ape console
and you should be able to do the same as the above!
Use the access token above to run with your containers by supplying them as environment variables
WARNING: Don't forget to cycle your access tokens on a regular basis to prevent access leakage!
Development
This project is in development and should be considered a beta. Things might not be in their final state and breaking changes may occur. Comments, questions, criticisms and pull requests are welcomed.
Prerequisites to AWS Setup
To begin, create a virtual environment set up and activate the virtual environment before doing anything for the setup of AWS
- You must have an AWS account
- Must be an AWS Identity and Access Management (IAM) user with administrator access
- Must have configured AWS credentials
- Must have Docker, Python3 and pip installed on your workstation
AWS Setup
For Mac and Linux
Create a ~/.aws folder in your home directory:
mkdir ~/.aws
Note: get your access key and key id from your IAM in you AWS account
here. Create a
credentials file in the ~/.aws folder:
cat <<EOF > ~/.aws/credentials
[default]
aws_access_key_id = YOUR_ACCESS_KEY
aws_secret_access_key = YOUR_SECRET
EOF
Create a config file in the ~/.aws folder:
cat <<EOF > ~/.aws/config
[default]
region = YOUR_REGION
output = json
EOF
AWS KMS Key Import Steps
For manual setup, follow this article
License
This project is licensed under the Apache 2.0.
Metadata
Release files for ape-aws 0.8.5
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 | Actions |
|---|---|---|---|---|
| ape_aws-0.8.5.tar.gz | 25.9 kB | With provenance | Details for ape_aws-0.8.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ape_aws-0.8.5-py3-none-any.whl | Python 3 | none | any | Details for ape_aws-0.8.5-py3-none-any.whl |
Total release size: 45.8 kB
Release files / ape_aws-0.8.5.tar.gz
| Download URL | ape_aws-0.8.5.tar.gz |
|---|---|
| Size | 25.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68006854e1fc0a8fc210d4b8b09eb0b3a0182b1531ba67003b96c9fe8e81a572
|
|
BLAKE2b-256 checksum How to use checksums |
e28fa11cee40b39505128f63a9d4b1f5a28052ba522eb95fda7f16fcd9610f9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logRelease files / ape_aws-0.8.5-py3-none-any.whl
| Download URL | ape_aws-0.8.5-py3-none-any.whl |
|---|---|
| Size | 19.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f8bae1de2c3b8d93ad899d4d0f9c98d3a095b2b33fce04179f1aea6dc3d5da5
|
|
BLAKE2b-256 checksum How to use checksums |
6bd2e819160cb251b223f653ee93e63e995b98c6aa41a685aeddf54bdbb176e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logSecurity for ape-aws 0.8.5
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ape_aws-0.8.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logA 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.