/** * Deploy SES Templates to AWS * * Run this script to create or update the email templates in AWS SES. * Usage: npx ts-node scripts/deploy-templates.ts */ import { SESv2Client, CreateEmailTemplateCommand, UpdateEmailTemplateCommand } from "@aws-sdk/client-sesv2"; const sesClient = new SESv2Client({ region: process.env.AWS_SES_REGION || "us-east-1", }); const APP_NAME = "Elmeg"; const SUPPORT_EMAIL = "support@elmeg.xyz"; // Template definitions const templates = [ { TemplateName: "ELMEG_EMAIL_VERIFICATION", TemplateContent: { Subject: "Verify your Elmeg account", Html: `
{{app_name}} |
|
Verify your email addressHi {{user_name}}, Thanks for signing up for {{app_name}}. Please verify your email address by clicking the button below.
This link will expire after 24 hours for your security. If you did not create an account, you can safely ignore this email. If the button above doesn't work, copy and paste this URL: {{verification_link}} |
|
|
{{app_name}} • Contact: {{support_email}} |
{{app_name}} |
|
Reset your passwordHi {{user_name}}, We received a request to reset the password for your {{app_name}} account. Click the button below to choose a new password.
This link will expire after 1 hour for your security. If you did not request a password reset, you can safely ignore this email. If the button above doesn't work, copy and paste this URL: {{reset_link}} |
|
|
{{app_name}} • Contact: {{support_email}} |
{{app_name}} |
||
Account activity detectedHi {{user_name}}, We detected the following activity on your {{app_name}} account:
If this was you, no further action is needed. If you did not perform this action, please secure your account immediately. |
||
|
{{app_name}} • Contact: {{support_email}} |