How to use Django SNS backend on AWS given SMTP cannot be used on AWS?

Hi

kobo-env/envfiles/smtp.txt says:

“NOTE: To send from AWS EC2 instances, SNS must be used instead of SMTP. These and the SNS e-mail settings from envfiles/aws.txt are mutually exclusive; do not use both.
See Sending email | Django documentation | Django

However that page linked to above doesn’t appear to describe how to use SNS instead of SMTP.

Presumably I need to set EMAIL_BACKEND in smtp.txt?
But what is the backend name that I should use please?
I tried django_ses.SESBackend and django.core.mail.backends.django_ses.SESBackend but received e.g. “ModuleNotFoundError: No module named ‘django_ses’”.

Following that, are the SNS e-mail settings in aws.txt just the following?

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=

Thanks

I’m just bumping this up as I would really appreciate help in sorting this, thanks.

I now realise that the above mixes up SES with SNS, as I was also trying to see if SES worked, because Django per-se is supposed to work with AWS SES.

So, how do I refrain from using the SMTP settings from envfiles/smtp.txt, such that I am only using envfiles/aws.txt, and not both, as described in the documentation? Should aws.txt be blanked, like the following?:

EMAIL_BACKEND=
EMAIL_HOST=
EMAIL_PORT=
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_USE_TLS=
DEFAULT_FROM_EMAIL=

The envfiles/aws.txt that comes with Kobotoolbox Server contains only the following:

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=

But should I also add this?:

AWS_SES_REGION_NAME =
AWS_SES_REGION_ENDPOINT =