Skip to content
Kitbay

aiml-access-diagnostics

Apache-2.0Updated on Nov 11, 2026138GitHub stars

A skill for AWS DevOps Agent that works out why a call to Amazon Bedrock or Amazon SageMaker was denied.

What the skill teaches

A skill for AWS DevOps Agent that works out why a call to Amazon Bedrock or Amazon SageMaker was denied. It follows the authorisation chain step by step (who is calling, iam:PassRole, the role's trust and permission policies, resource policies and SCPs), names the step that refused the call and drafts a narrowly scoped IAM policy for a person to review. It also recognises denials that are not IAM gaps, such as Marketplace model subscriptions, and errors reported under other codes, for example a role that cannot be assumed. It only reads and never applies the policy itself.

Capabilities

  • Diagnose AccessDenied errors on Bedrock and SageMaker calls
  • Walk the IAM authorisation chain to find the denying step
  • Draft a scoped IAM policy for human review
  • Spot Marketplace subscription and trust-policy failures