Ravi Sir's Cards › AWS
SES vs SNS fallback
This revision card explains SES vs SNS fallback. It starts from the need that SES sandbox only mails verified identities. Students often cannot leave sandbox in one lab session. It describes amazon SES is built for email. If sandbox blocks you, publish to an SNS email topic instead so the flow still teaches. The how-to section notes try verify email in SES. If stuck, set USE_SNS=1 and TOPIC_ARN. IAM allows the path you use. An example on the card is same upload triggers a receipt either from SES or SNS depending on the env flag — DynamoDB still logs one row.
Read card text
What this card says
Why do we need it?
SES sandbox only mails verified identities. Students often cannot leave sandbox in one lab session.
What is it?
Amazon SES is built for email. If sandbox blocks you, publish to an SNS email topic instead so the flow still teaches.
How to do it
Try verify email in SES. If stuck, set USE_SNS=1 and TOPIC_ARN. IAM allows the path you use.
USE_SNS
Example
Same upload triggers a receipt either from SES or SNS depending on the env flag — DynamoDB still logs one row.