I have a existing wordpress website in Elasticbeanstalk AWS with auto scaling and load balancing and external RDS. while scaling policies are applied I will loose my existing data in EC2 instances so I want to keep it in such a place where I don't loose any configuration and data. I do not want to use EFS and rather would like to use S3 for this to achieve I did not find a clear documentation in internet as to how to achieve it. Can somebody help me with as to how to achieve it.
Note: I want to keep all my data which includes media files and wordpress config files as well on a whole view everything that I should have the wordpress running even the new instances are launched.