A CDK construct that creates SMTP credentials permitting emails to be sent via SES.
Project description
SMTP Credentials CDK Construct
This construct creates an IAM user, with a policy permitting emails to be sent via SES from a specified email address, creates an access key associated with this user, and converts the access key to SMTP credentials.
The generated SMTP credentials are stored as a parameter in Parameter Store, and the name of this parameter is output as a CloudFormation output. The parameter may be safely deleted, once the credentials have been accessed.
Installation
JavaScript / TypeScript (npm / Yarn)
# npm
npm i -D @charlesdotfish/smtp-credentials-cdk-construct
# Yarn
yarn add -D @charlesdotfish/smtp-credentials-cdk-construct
See more details at npmjs.com: https://www.npmjs.com/package/@charlesdotfish/smtp-credentials-cdk-construct
C# / .NET (NuGet)
dotnet add package CharlesDotFish.CdkConstructs.SmtpCredentials
See more details at nuget.org: https://www.nuget.org/packages/CharlesDotFish.CdkConstructs.SmtpCredentials/
Python (pip)
pip install smtp-credentials-cdk-construct
See more details at pypi.org: https://pypi.org/project/smtp-credentials-cdk-construct/
Java (Maven)
<dependency>
<groupId>fish.charles.cdk-constructs</groupId>
<artifactId>smtp-credentials-cdk-construct</artifactId>
<version>1.0</version>
</dependency>
See more details at maven.org: https://search.maven.org/artifact/fish.charles.cdk-constructs/smtp-credentials-cdk-construct
Example Usage
See API.md for details on the exposed API.
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
SmtpCredentials(self, "SmtpCredentials",
email_address="me@charles.fish"
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for smtp-credentials-cdk-construct-1.0.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb9c66abbdf6fbaa719edc767c13f9b46122d705d39e4f04daa082b5e1acef26 |
|
MD5 | 9070cb53047ff1a34655ffa704f64514 |
|
BLAKE2b-256 | 2faea964a8252965f1dd9bd2eb583a4f153b441e8b4b3d2f30a4e8c906b11f6d |
Hashes for smtp_credentials_cdk_construct-1.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96c5f42899d5ee910bf75a06ac095f42d777d8c6daa7fed094ffe35e00afa991 |
|
MD5 | 31385cae6b32238bb4958850b1170656 |
|
BLAKE2b-256 | 8e05e7ee72933c6355f6728aef859bdf80e616fb54f24b9f2efb26f565af6356 |