Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.57 KB

README.md

File metadata and controls

37 lines (30 loc) · 1.57 KB

SES SMTP Credentials Generation

To use the SMTP interface of AWS SES, you need to generate credentials based on the secret access key of an IAM user. AWS does provide an example script in the documentation, but copying code out of the documentation isn't very user friendly. This tool does the same thing, but its easier to install (if you already have a working python environment).

Installation

This code can be installed from pypi. E.g. using pip or pipx.

# with pipx, recommended for a cli tool
pipx install ses-smtp-credentials
# with pip
pip install ses-smtp-credentials

Usage

You need to supply the secret access key and the region. ses-smtp-credentials will ask you for missing information, so both are optional arguments.

# Interactive
ses-smtp-credentials

# Non-interactive
ses-smtp-credentials --secret SECRET_ACCESS_KEY --region REGION 

License

This code was based on sample code from the AWS documentation that was released under a modified MIT license on GitHub. In the documentation it's called "smtp_credentials_generate.py". The same license has been adapted to this repository. See the LICENSE file.