Devolv Drift — CI/CD-First IAM Policy Drift Detection

devolv drift is a CI/CD-first tool that automatically detects IAM policy drift between your local files and deployed AWS IAM policies. It is designed primarily for automated pipelines, with local CLI use as a secondary option.


🚀 Why Devolv Drift in CI/CD?

👉 CI/CD is the primary use case — local CLI use is optional for manual checks.


📦 How to Get Started

1️⃣ Install Devolv (for local CLI use)

pip install devolv

✅ Required if you want to run devolv drift manually outside CI/CD.

Note: In CI/CD, installation is typically handled by your workflow or container image — you don't need to install it manually.


2️⃣ Set Up AWS OIDC Role for GitHub Actions

Download our onboarding script:
https://github.com/devolvdev/devolv-actions/blob/main/devolv_oidc_onboard.py

Download via terminal:

curl -O https://raw.githubusercontent.com/devolvdev/devolv-actions/main/devolv_oidc_onboard.py

Run in AWS CloudShell or any AWS CLI-authenticated machine:

python devolv_oidc_onboard.py --github-org YourOrgName

✅ This will:


3️⃣ Add GitHub Actions Workflow

Create a file at:

.github/workflows/devolv-drift.yml

Example contents:

permissions:
  id-token: write
  contents: write
  pull-requests: write
  issues: write

jobs:
  drift-check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: aws-actions/configure-aws-credentials@v4
        with:
          role-to-assume: arn:aws:iam::<account_id>:role/YourOrg-DevolvRole
          aws-region: us-east-1

      - name: Run Devolv Drift
        uses: devolvdev/devolv-actions@v2
        with:
          tool: drift
          policy-name: DevolvTestPolicy
          path: ./test-devolv-policy.json
          approvers: ""
          github-token: ${{ secrets.GITHUB_TOKEN }}
          approval-anyway: false

⚠ Mandatory repository setting:
In your GitHub repository settings under Actions → General → actions, ensure you enable:

☑ Allow GitHub Actions to create and approve pull requests

📝 What Devolv Drift Does in CI/CD


⚡ Final Checklist for Success


🌟 Summary

Devolv Drift is built for CI/CD. Automate IAM drift detection, protect your AWS environment, and ensure policy alignment — with zero manual effort.

Get the onboarding script
Install the CLI (for local use)
➡ Add the workflow file, enable PR permissions, and go!