ses-notification-service

dwp/ses-notification-service/aws

Terraform Module HCL AWS

Terraform module that creates a service to recieve notifications and distrubute emails via AWS SES

Install
module "ses-notification-service" {
source = "dwp/ses-notification-service/aws"
version = "2.1.4"
}
plain text: /constructs/tfmod-dwp-ses-notification-service-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-ses-notification-service Terraform module that creates a service to receive notifications and distribute emails via AWS SES Usage Note: Lambda Zip file can be sourced from https://github.com/dwp/aws-sns-to-ses-mailer/releases ``hcl module "ses_notification_service" { source = "dwp/ses-notification-service/aws" domain = "example.com" region = "eu-west-2" lambda_sns_to_ses_mailer_zip = { base_path = ".", file_name = "aws-sns-to-ses-mailer-0.0.1.zip" } } ` Examples The following example creates the notification service, SNS topic, email template, and distribution list. Notifications published to SNS topic will then be emailed to the distribution list. Enable S3 Access Logging `hcl module "ses_notification_service" { source = "dwp/ses-notification-service/aws" bucket_access_loggi

Inputs (16)
NameTypeDescriptionDefault
regionstringAWS region used by Lambda to communicate with S3 and SES. This should match the required
domainstringThe domain name to add to SES identities for sending emails from required
max_threadsstringThe number of parrallel threads the Lambda can use to send messages to SES. A si"1"
bucket_namestringName of S3 bucket for storing mailing lists and email templates."ses_notification_service"
lambda_mailer_role_namestringLambda Mailer IAM role name"lambda_sns_to_ses_mailer"
lambda_sns_to_ses_mailer_zipmap(string)Local path to SES Mailer release: https://github.com/dwp/aws-sns-to-ses-mailer/r{ "base_path": ".", "file_name": "aw
log_levelstringLogging level for Lambda"info"
bucket_access_logginglist(map(string))To enable access loging on the mailing list and email templates bucket pass in a[]
lambda_mailer_cw_log_group_namestringLambda Mailer CW log group name"/aws/lambda/sns_to_ses_mailer"
ses_lambda_func_namestringSES Lambda Function Name"sns_to_ses_mailer"
ses_send_mail_reads3_policy_namestringSES Send Mail Read s3 Policy name"ses_send_mail_read_s3"
log_retention_daysstringNumber of days to hold logs for"180"
common_tagsmap(string)Common Tags{}
cw_logs_policy_namestringCloudwatch Logs Policy name"WriteCloudWatchLogs"
ses_mailer_bucket_cmkstringLambda Mailer CW log group name"alias/ses_mailer_bucket_cmk"
ses_send_mail_policy_namestringSES Send Mail Policy name"ses_send_mail"
Outputs (4)
sns_to_ses_mailer_lambda_arn — Lambda mailer ARN
ses_mailer_bucket — SES Mailer Bucket
domain_identity — Domain identity
domain_identity_verification_token — Domain identity token
Resources (13)
aws_cloudwatch_log_groupaws_iam_policyaws_iam_roleaws_iam_role_policy_attachmentaws_kms_aliasaws_kms_keyaws_lambda_functionaws_s3_bucketaws_s3_bucket_aclaws_s3_bucket_lifecycle_configurationaws_s3_bucket_server_side_encryption_configurationaws_s3_bucket_versioningaws_ses_domain_identity
Details
FrameworkTerraform Module
LanguageHCL
Version2.1.4
Cloud AWS
★ Stars1
Forks3
Total downloads78.8k
Inputs16
Outputs4
Resources13
LicenseApache-2.0
Namespacedwp
Updated