KumiluPERSONAL WORKS
← Back to Glue inventory

KUMILU / DOCUMENTATION · 1.0.23

Permission-check guide

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

ParameterDefaultPurpose
--REGIONap-northeast-1Region to query
--SAMPLE_WORKFLOW_NAMEautomaticExplicit known-readable Workflow sample
--SAMPLE_JOB_NAMEautomaticExplicit Job sample
--SAMPLE_TRIGGER_NAMEautomaticExplicit Trigger sample
--TEST_GET_JOBSfalseAlso probe optional GetJobs
--FAIL_ON_INCOMPLETEfalseNonzero 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.