Can't save file on EC2 created by elastic beanstalk

0

I have created an environment on elastic beanstalk. I have to save file on Ec2 Instance created by elastic beanstalk. Each time I deploy my war file to Elastic beanstalk. The file save by me on EC2 instance gets deleted. What is the solution to prevent the file not to be deleted after deployment.

已提问 7 个月前181 查看次数
2 回答
0

Hello.

Does this mean that the files included in the application bundle will disappear?
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/applications-sourcebundle.html

profile picture
专家
已回答 7 个月前
0

Elastic Beanstalk instances are ephemeral - they can be replaced during deployments and other changes. You should never save files outside of the application bundles to them.

You should use other forms of persistent storage. To learn how to persist your data in Elastic Beanstalk - please read the section "Persistent Storage" in the Elastic Beanstalk Design Considerations documentation.

AWS
专家
已回答 7 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则