better-aws-tags
A unified Python interface for managing AWS resource tags.
AWS provides multiple tagging APIs across services, including the Resource Groups Tagging API and service-specific implementations such as EC2, S3, and IAM. This library abstracts these differences behind a single API that accepts any valid ARN and handles service routing automatically.
Getting Started
import better_aws_tags as bats
# Get tags for resources
tags = bats.get_tags(["arn:aws:s3:::my-bucket", "arn:aws:iam::123456789012:role/my-role"])
# Set tags on resources
bats.set_tags(["arn:aws:s3:::my-bucket"], {"Environment": "prod", "Team": "platform"})
How It Works
The library routes ARNs to the appropriate handler:
- Most resources use the Resource Groups Tagging API (1000+ supported resource types)
- Some IAM resources (roles, users, policies) require IAM-specific APIs
This routing is transparent - just pass ARNs and the library handles the rest.
Reference
- https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/overview.html
- https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_TagResources.html
- https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/supported-services.html
- https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html
AWS Resources and Resource Types:
Metadata
Release files for better-aws-tags 0.6.0
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 |
|---|---|---|---|---|
| better_aws_tags-0.6.0.tar.gz | 38.9 kB | With provenance | Details for better_aws_tags-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| better_aws_tags-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for better_aws_tags-0.6.0-py3-none-any.whl |
Total release size: 56.8 kB
Security for better-aws-tags 0.6.0
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.
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.