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.

feita há um ano321 visualizações
2 Respostas
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
ESPECIALISTA
respondido há um ano
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
ESPECIALISTA
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas