Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: [main]
pull_request:

permissions:
contents: read

jobs:
lint-and-test:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ __pycache__/
.pytest_cache/
.ruff_cache/
*.egg-info/
*.tfplan
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Moulaye Zein Haidara

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# cloud-tagging-cli
# Cloud resource tagging CLI

A CLI that checks cloud resources against a standard tagging policy and
bulk-fixes the violations it can fix safely.
A Python CLI that checks and bulk-fixes AWS resource tags. Azure and GCP remain interface-only stubs that raise `NotImplementedError`. Validation uses fakes in CI.

## Problem

Expand All @@ -11,7 +10,7 @@ at all. This tool defines one standard-tags policy, reports who's out of
line (`check`), and brings them into line (`apply`), without ever guessing
a value it can't justify.

## Scope, honestly
## Scope

Only **AWS** has a real adapter, built on the
[Resource Groups Tagging API](https://docs.aws.amazon.com/resourcegroupstaggingapi/latest/APIReference/)
Expand Down Expand Up @@ -85,7 +84,7 @@ tags:
case: upper
```

## Limits
## Known limitations

- Only AWS has working code against a real API shape; Azure/GCP are stubs.
- `apply` never guesses a disallowed or missing-with-no-default value — it
Expand All @@ -110,7 +109,7 @@ tags. When the diff is empty, no `set_tags`/`TagResources` call is made.
Running `apply --apply` twice in a row produces zero additional API calls
on the second run — covered by `test_apply_is_idempotent_on_second_run`.

## Testing status
## Validation level

Tested: rule engine (all four violation kinds, including negative cases),
config loading (valid + four malformed-config negative cases), the AWS
Expand Down
Loading