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.

質問済み 1年前322ビュー
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
エキスパート
回答済み 1年前
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
エキスパート
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ