Permanent storage on a resilient bean stem

How can I attach persistent storage on an elastic beanstalk?

I know I need a .config file where I set the environment parameters to run every time an instance is created.

My goal is to have a volume of say 100 GB, that even though the instances were deleted / terminated, I have this persistent data volume where all instances can access read.

I could use S3 to store this data, but that would require application changes and latency could be an issue.

This way, I could access the file system like any regular server.

+3


source to share


2 answers


If your desire is to have a central data repository, access to all EC2 instances, then Amazon S3 is your best bet.

Normal disk sizes are provided through the Elastic Block Store (EBS). EBS volumes can only be installed on one EC2 instance at a time. Therefore, in order to exchange data contained on an EBS volume, you need to use normal networking methods to mount network volumes.



However, if your goal is to share, if one instance does not share a shared volume with other instances, it is better to use S3 because it is accessible from all instances. It is most likely worth trying to modify your application to use S3.

+1


source


AWS now offers a solution called Elastic File System ( Amazon EFS ), which allows multiple instances to access a file with shared storage.



+1


source







All Articles