Skip to content

MatthiasKunnen/aws-ses-publisher

Repository files navigation

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.

About

CLI and Node utility to deploy email templates to Amazon SES

Resources

License

Stars

Watchers

Forks

Packages

No packages published