File size: 610 Bytes
b404de3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | from __future__ import annotations
import sys
from pathlib import Path
from cloudenv.server.providers.aws.operations_data import (
AWS_SERVICE_OPERATIONS as OPS,
)
ROOT = Path(__file__).resolve().parent
OUT = ROOT / "aws_operations.csv"
REPO_ROOT = ROOT.parent
sys.path.insert(0, str(REPO_ROOT))
def main() -> None:
lines: list[str] = []
for svc, ops in sorted(OPS.items()):
for op in ops:
lines.append(f"{svc},{op}")
OUT.write_text("\n".join(lines) + "\n", encoding="utf-8")
print(f"Wrote {OUT} ({len(lines)} operations)")
if __name__ == "__main__":
main()
|