Nit-Picking Magistrate

    aws-ses-publisher
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.0 • Public • Published

    npm version Build Status Build Status

    AWS SES publisher

    A CLI/node utility to create/update your templates in Amazon SES.

    Config

    A JSON config file is used to map template name, subject and files.

    Example config:

    {
        // The key is the template name
        "PasswordReset": { 
            "subject": "Example.com - Password reset",
            // Filename relative to --template-dir. If not provided an empty string will be used
            "html": "password-reset.html",
            "text": "password-reset.txt"
        }
    }

    Usage

    AWS Authentication

    Authentication and region changes can be done using environment variables as described here:

    Example

    File tree:

    Directory
    ├── templates
    │   ├── password-reset.html
    │   └── password-reset.txt
    └── templates.json
    

    AWS_PROFILE=prod ses-publish --template-dir templates

    More options

    --only allows you to selectively upload templates by their name.

    --suffix allows you to upload test versions of your templates. E.g. --suffix Review would publish PasswordResetReview.

    --help argument is available for the full capabilities of the CLI utility.

    Keywords

    Install

    npm i aws-ses-publisher

    DownloadsWeekly Downloads

    2

    Version

    1.1.0

    License

    LGPL-3.0-or-later

    Unpacked Size

    25.3 kB

    Total Files

    14

    Last publish

    Collaborators

    • -waylander-