Thank you for reaching out to us. I understand that you want to know how to deploy a Django application with Celery and Celery Beat to Elastic Beanstalk and use Elasticache cluster for Redis.
You can deploy a Django application to Elastic Beanstalk following the steps mentioned in the documentation below. While creating a Django project in second step, you can define an instance of the Celery library and create required files such as celery.py, init.py etc. within the project location by following the steps in the celery official document you are following.
 Deploying a Django application to Elastic Beanstalk - https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html
 First steps with Django - https://docs.celeryq.dev/en/stable/django/first-steps-with-django.html#using-celery-with-django
Following this, you should be able to implement Celery and Celery Beat with Django deployed on Elastic Beanstalk.
For using Elasticache Cluster as Redis, you have to set your Elasticache endpoint instead of localhost in your project settings file.
- from the documentation you shared.
# django_celery/settings.py # ... # Celery settings CELERY_BROKER_URL = "redis://localhost:6379" CELERY_RESULT_BACKEND = "redis://localhost:6379"
- You can configure Elasticache endpoint as below:
# Celery settings CELERY_BROKER_URL = "redis://<elasticache_endpoint>:6379" CELERY_RESULT_BACKEND = "redis://<elasticache_endpoint>:6379"
Please make sure that the traffic from the instance security group used in Elastic Beanstalk application is allowed in Elasticache Redis Cluster Security Group.
 Authorize access to the cluster - https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/GettingStarted.AuthorizeAccess.html
I sincerely hope this helps.
AWS Elastic beanstalk python install error in latest Amazon Linux 2/3.3.12asked 6 months ago
Can't run 'rails console' on Elastic Beanstalk Amazon Linux 2Accepted Answerasked 6 months ago
How to Configure Celery and Celery Beat with Django deployed on Elastic Beanstalk Amazon Linux 2?asked 10 days ago
Deploy Rest API in DjangoAccepted Answerasked 8 months ago
Elastic Beanstalk doesn't run commands in the backgroundasked 3 years ago
unable to connect to VPN in linux OS on django app on amazon lightsailasked 8 months ago
use django developing web site in aws ec2asked 4 months ago
Problems mapping specific folder as a subdomain with Elastic Beanstalkasked 3 years ago
Elastic Beanstalk with OpenLiteSpeed web server.asked 5 months ago
Customizing the Docker Run Command on Elastic Beanstalkasked 6 months ago