Skip to main content

A CDK construct that creates SMTP credentials permitting emails to be sent via SES.

Project description

Charles Dot Fish

SMTP Credentials CDK Construct

Release Pipeline Code Coverage GitHub Issues GitHub Pull Requests

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smtp-credentials-cdk-construct-1.0.13.tar.gz (65.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file smtp-credentials-cdk-construct-1.0.13.tar.gz.

File metadata

  • Download URL: smtp-credentials-cdk-construct-1.0.13.tar.gz
  • Upload date:
  • Size: 65.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9

File hashes

Hashes for smtp-credentials-cdk-construct-1.0.13.tar.gz
Algorithm Hash digest
SHA256 1e576767c4045c5c4de8ebe389bfe6f827604a44c037545f6afbf2d0f8b16245
MD5 28a51e5044d4257f094d440ef8de6ac2
BLAKE2b-256 7035ddbd9acd19b3a7b198fa04bd889dbe2dc875008b7c28743fa9e5c5a55fc5

See more details on using hashes here.

File details

Details for the file smtp_credentials_cdk_construct-1.0.13-py3-none-any.whl.

File metadata

  • Download URL: smtp_credentials_cdk_construct-1.0.13-py3-none-any.whl
  • Upload date:
  • Size: 64.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9

File hashes

Hashes for smtp_credentials_cdk_construct-1.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 a4ff1bc82dd9864fde23ff89030877b2cc9fea092f46ef7fa52c3f51539a2ba3
MD5 8ccaedfa33a3c7f013ed8c8183e8cc27
BLAKE2b-256 70fe4ca0b9c457d42bf5000f904366b743443fc8f6eb8ed0d9553bc6d8a0c2c0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page