Persistent Data Through ASG scaling out and in

0

Hello,
I'm fairly new to AWS architecture and I have an issue. The issue is this. We are hosting our website on Wordpress using Elastic Beanstalk for deployment. We change the language code on our site fairly often and we just do this by pushing changes through code commit. However when one of our instances goes down for whatever reason it loses all the changes we made and thus we have to manually push the updates again. What I'm looking for is best practice methods to maintain these code updates through a reboot. We don't want to use EFS or update the ami every time. I am thinking this can be done via a script but I dont' see where to enter USERDATA in the Beanstalk environment. ANy help with this would be greatly appreciated.

Thanks

Edited by: medwards on May 8, 2020 12:41 PM

已提問 4 年前檢視次數 202 次
1 個回答
0

First off, this really is an excellent use case for EFS.
However, if you don't want to use it, and you want to stick with beanstalk, see:
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ebextensions.html

已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南