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.

preguntada hace un año321 visualizaciones
2 Respuestas
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
EXPERTO
respondido hace un año
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
EXPERTO
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas