AWS Integration Phase-II
Amazon Simple Email Service (SES)
Amazon Simple Email Service (SES) is a cloud-based email sending service to send transactional, promotional, and other types of emails to customers.
Overview

Setting up SES
Create a Sender Identity (Sandbox Mode)
It is an domain, subdomain or an email to utilize to send emails through SES.
-
From address:
- SES Dashboard → Identities → Create identity → Indentity Details: Email address → Set email address →
Create Identity
-
Verify the provided email address.
- SES Dashboard → Identities → Create identity → Indentity Details: Email address → Set email address →
-
To address:
Repeat the previous steps to create another email for the "To address".
Optional Note: If encountering issues with SES access, update IAM User policies with "AmazonSESFullAccess".
Integration
Installation
Execute the following command to install the necessary package:
Setup settings.py
Update your settings to integrate SES:
EMAIL_BACKEND = 'django_ses.SESBackend'
AWS_SES_REGION_NAME = 'us-east-2' # for Ohio
AWS_SES_REGION_ENDPOINT = f'email.{AWS_SES_REGION_NAME}.amazonaws.com'
Send Test Mail
Test your SES configuration by sending a test email using Python shell:
-
Code:
from django.core.mail import send_mail send_mail("Subject", "Body", "From address", ["To address 1", "To address 2"])
A success output "1" confirms the email was sent.
-
Verify:
Production Access
Here we don't need to add any sender email address, rather we can mail any email address we want. Gain access for production use by following these steps:
-
SES Dashboard → View get set up page → Request production access → Fill the form as per your requirements →
Submit request
-
Further details on production access can be found here
AWS Elastic Beanstalk (EB)
Amazon Elastic Beanstalk (EB) simplifies the deployment and management of web applications and services in the cloud.
Overview

Setting up EB
Install EB CLI
Note: To ensure a smooth installation, EB CLI and pyyaml 5.3.1 package need to be installed globally.
After installation, type eb in the terminal to confirm successful setup.
For additional macOS instructions, refer to the guide
Integration
Installation
Execute the following command to install the necessary package: