Skip to main content

aws-cmp-secrets

aws_cmp_secrets is a script which enables you to compare secrets stored in AWS Secrets Manager and show difference between the two. It also supports MFA authentication(interactive), should policy require it.

It utilizes boto3 under the hood. Also, you need AWS credentials in your environment(one way or another) and appropriate permissions to access secrets you want to compare.

NOTE that CLI args and output format might change in the future(probably in 10 years from now or so). Ideas to make output format more useable and user-friendly are welcome, I think.

Example usage

# with interactive MFA authentication and version IDs
aws_cmp_secrets \
    -i \
    -s1 my/secret/foo \
    --version-id1 12345678-1234-1234-1234-123456789012 \
    -s2 my/secret/foo \
    --version-id2 12345678-1234-1234-1234-333333333333
MFA devices:
0: arn:aws:iam::111111111111:mfa/mfa-device1
Choose which MFA device you want to use(0..0): 0
Enter MFA token: 123456
---
a: secret 'my/secret/foo'@'12345678-1234-1234-1234-123456789012'
b: secret 'my/secret/foo'@'12345678-1234-1234-1234-333333333333'
a: 'SOME_KEY':'foo_value'
b: 'SOME_KEY':'bar_value'
a: 'OTHER_KEY':'some_value'
b: '**ABSENT**':'**ABSENT**'

# with secret values masked
aws_cmp_secrets \
    -m \
    -s1 my/secret/foo \
    -s2 my/secret/bar
a: secret 'my/secret/foo'@'AWSCURRENT'
b: secret 'my/secret/bar'@'AWSCURRENT'
a: 'SOME_KEY':'**MASKED**'
b: 'SOME_KEY':'**MASKED**'

Metadata

Release files for aws-cmp-secrets 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-cmp-secrets 0.0.2
File Size Uploaded
aws_cmp_secrets-0.0.2.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aws-cmp-secrets 0.0.2
File Interpreter ABI Platform
aws_cmp_secrets-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / aws_cmp_secrets-0.0.2.tar.gz

Download URL aws_cmp_secrets-0.0.2.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5e495c7177db796a5e7b3df6cdc51776863df1b2178a8ea02f2c004571599d2e
BLAKE2b-256 checksum
How to use checksums
4313ad92b03d73bdbe1d009723ca3a442030f6c99d4ac25da9a04dced0eb58d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 6, 2026.

Transparency log

Release files / aws_cmp_secrets-0.0.2-py3-none-any.whl

Download URL aws_cmp_secrets-0.0.2-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
21ea3e77403a326a7373300a3a3c9d2dd18d62ddb8940f576efec4676686b53f
BLAKE2b-256 checksum
How to use checksums
129c2cbc56737b0d3aba29dabc9a72570555b052044fc187a5cf5b4090a89d8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page