0.0.3 • Published 3 years ago

cdk-ses-helpers v0.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

cdk-ses-helpers

SMTP Secret

CDK construct for Amazon SES SMTP credentials with Amazon Secrets Manager

import { SmtpSecret } from 'cdk-ses-helpers';

const smtpSecret = new SmtpSecret(this, 'SmtpSecret');

This secret has the following values. Please use username and password to send emails via SMTP.

{
    "access_key": "XXXXXXXXXXXXXXXXXXXXXX",
    "secret_access_key": "XXXXXXXXXXXXXXXXXXXXXX",
    "username": "XXXXXXXXXXXXXXXXXXXXXX",
    "password": "XXXXXXXXXXXXXXXXXXXXXX",
    "endpoint": "email-smtp.${region}.amazonaws.com"
}

Managed Identity

CDK construct to create managed identity of Amazon SES via Amazon WorkMail

import { ManagedIdentity } from 'cdk-ses-helpers';

const identity = new ManagedIdentity(stack, 'ManagedDomain', { subDomainName: 'hey-yo' });
const domainName = identity.domainName;  // return hey-yo.awsapps.com