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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 380f8dfdc6d36d880238c8531dea2864b354afa7b3bc386bbb9e188ca904bb83 |
|
MD5 | 6dbcdff754fdb4fd075224922dbd4eb9 |
|
BLAKE2b-256 | 4d4e28cb32763f26692fb4f1bdb2b5894b16c7019dd18d0ae9a5de8c99616166 |
Hashes for smtp_credentials_cdk_construct-1.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb63b9c6bd2e07b70ec1749c0021dcada2772362260b2bde416a7a1a19aaaa9d |
|
MD5 | 90af9374b2426f865a8e24fd700655e6 |
|
BLAKE2b-256 | d250e174e004cdc4a1bd4fe8a40408fb91a1c5e2c01013a16fc93e0ce189a305 |