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.

demandé il y a un an320 vues
2 réponses
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
EXPERT
répondu il y a un an
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
EXPERT
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions