Skip to content

Instantly share code, notes, and snippets.

View WasimTTY's full-sized avatar

Mohamed Wasim WasimTTY

View GitHub Profile
@WasimTTY
WasimTTY / secret-header-rotator-function.py
Created April 6, 2025 09:45
🔐 CloudFront & WAF secret header rotation with AWS Secrets Manager fork of: https://github.com/aws-samples/amazon-cloudfront-waf-secretsmanager
from __future__ import print_function
import json
import re
import os
import boto3
import logging
import requests
import time
from botocore.exceptions import ClientError