Permission-check guide
Package 1.0.23. Run scripts only in your approved AWS environment. Kumilu serves generic code and synthetic examples; real results remain in your selected S3 location. Language variants change comments and explanatory docstrings only. Field names, AWS APIs, runtime messages and execution logic are shared.
The standalone check_permissions.py uses the actual Python Shell Job execution Role. It makes no S3 writes, history reads or Glue mutations, and never assumes another Role. It does not verify GetJobRuns or output PutObject access.
Setup
Use a separate Python Shell 3.9 Job, analytics, the intended execution Role, 0.0625 DPU and Max retries = 0. Run with --REGION ap-northeast-1. Check the logged IAM Role ARN before interpreting results.
Parameters
| Parameter | Default | Purpose |
|---|---|---|
| --REGION | ap-northeast-1 | Region to query |
| --SAMPLE_WORKFLOW_NAME | automatic | Explicit known-readable Workflow sample |
| --SAMPLE_JOB_NAME | automatic | Explicit Job sample |
| --SAMPLE_TRIGGER_NAME | automatic | Explicit Trigger sample |
| --TEST_GET_JOBS | false | Also probe optional GetJobs |
| --FAIL_ON_INCOMPLETE | false | Nonzero exit for incomplete checks |
Read results
- OK: this sampled request succeeded; not proof of account-wide access.
- DENIED: AWS refused the request. Check the execution Role policy, boundaries, SCPs and endpoint policy.
- SKIPPED: no suitable sample or optional test disabled; this is not a pass. Supply explicit sample names where appropriate.
- ERROR: inspect credentials, networking, resource state and SDK request format. A local ParamValidationError does not prove an IAM denial.
GetJob requires JobName; GetWorkflow/GetTrigger require Name. The checker probes STS GetCallerIdentity and the six static Glue APIs ListWorkflows/GetWorkflow, ListJobs/GetJob, ListTriggers/GetTrigger. Each probe is independent.
Additional permissions for inventory
All inventory variants require the six static reads and PutObject for the selected timestamped result prefix. Lite-with-runs and Full additionally require glue:GetJobRuns on approved Job ARNs. Optional GetJobs requires its separate permission. Script S3 read, Role trust, CloudWatch logging and any KMS permissions are runtime prerequisites. Policy examples must be scoped and approved in your company environment. No permission changes are made by these scripts.