Skip to content

Instantly share code, notes, and snippets.

View lotyp's full-sized avatar

Andrij Orlenko lotyp

View GitHub Profile
@lotyp
lotyp / smtp_password.py
Last active October 15, 2023 14:15 — forked from danew/ses-smtp-password.py
Ansible filter to create AWS SES SMTP password from aws access secret
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import base64
import hmac
import hashlib
SMTP_REGIONS = [
'us-east-2', # US East (Ohio)
'us-east-1', # US East (N. Virginia)
'us-west-2', # US West (Oregon)