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. 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.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d13580fc502941851ca3b764858d736fc51de0983ce7a09c449e161c1c156cd |
|
MD5 | 3e7a399b09b5bb6673fb4cd42b5d7091 |
|
BLAKE2b-256 | 7b74770de693fb8418bd47fb5d5eef7c37b2b71bf9651ecb5f69cda7a7708870 |
Hashes for smtp_credentials_cdk_construct-1.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7709bf8bef6260047ecbc430c91c8b438656a8c6d1e9f16b43ab57973dcaee7 |
|
MD5 | 661e743740be5b4bf304dd3fcb2db16c |
|
BLAKE2b-256 | e3128a5c8f760b7ff6dc7ab0ae0f2d153b2371baac20f4b98ba1b381148078ea |