Skip to content

Rotate IAM Access Key #10

Rotate IAM Access Key

Rotate IAM Access Key #10

name: Rotate IAM Access Key
on:
workflow_dispatch: # Allows you to trigger it manually from GitHub UI
jobs:
rotate-key:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: pip install boto3 requests
- name: Run rotate key script
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
run: python scripts/rotate_iam_access_key.py