Skip to content

Conversation

@smohiudd
Copy link
Contributor

@smohiudd smohiudd commented Jan 6, 2026

Description

SMCE does not allow creating SMTP credentials for security reasons so we need an SES relay.
Add Fargate service with NLB for SES relay (https://github.com/loopingz/smtp-relay/)

@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Diff for stage: DefaultStage

Warning

1 Destructive Changes

No Changes for stack: veda-keycloak-dev ✅

Diff for stack: veda-ses-relay-dev - 0 to add, 1 to update, 0 to destroy

Details

[!WARNING]
Destructive Changes ‼️
Stack: veda-ses-relay-dev - Resource: FargateServiceTaskDef940E3A80 - Impact: WILL_REPLACE

Resources
[~] AWS::ECS::TaskDefinition FargateServiceTaskDef940E3A80 replace
 └─ [~] ContainerDefinitions (requires replacement)
     └─ @@ -2,7 +2,7 @@
        [ ] {
        [ ]   "Essential": true,
        [ ]   "Image": {
        [-]     "Fn::Sub": "${AWS::AccountId}.dkr.ecr.${AWS::Region}.${AWS::URLSuffix}/cdk-hnb659fds-container-assets-${AWS::AccountId}-${AWS::Region}:c787de7da6b3c3ff211ffbf82a777354ce81afe738e0999e50ef22197e29d268"
        [+]     "Fn::Sub": "${AWS::AccountId}.dkr.ecr.${AWS::Region}.${AWS::URLSuffix}/cdk-hnb659fds-container-assets-${AWS::AccountId}-${AWS::Region}:0e337c22a95ac353500e03a9a71f167eaf17e4ded349977937c57d653dbfb596"
        [ ]   },
        [ ]   "LogConfiguration": {
        [ ]     "LogDriver": "awslogs",

Generated for commit 9ed071d at 2026-01-06T21:18:29.851Z

@smohiudd smohiudd changed the title add ses relay feat: add ses relay Jan 8, 2026
Copy link
Member

@alukach alukach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The relay authenticates to AWS using IAM (task role) and delivers messages to SES using the SES API (for example, ses:SendEmail, ses:SendRawEmail), avoiding the need for SES SMTP credentials.

Wow, very interesting/clever technique! Looks good!

@smohiudd smohiudd merged commit ab30b26 into main Jan 9, 2026
1 check passed
@smohiudd smohiudd deleted the feature/ses-relay branch January 9, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants