DEV Community

Cover image for Storing Container Data in AWS S3
Sami Ullah Saleem for AWS Community Builders

Posted on

Storing Container Data in AWS S3

Install awscli

~ pip install --upgrade --user awscli
Enter fullscreen mode Exit fullscreen mode

AWSCLI Configure

~ aws configure
Enter fullscreen mode Exit fullscreen mode

Install sefs

~ yum install s3fs-fuse -y
Enter fullscreen mode Exit fullscreen mode

Mount S3 Bucket to local filesystem

Mount s3 bucket to local system

Image description

So, what we have done here?
We mount our s3 bucket to our local system and then bind mount it with the container. Now, if we copy any new file to our local directory. It will automatically go to our s3 bucket and in our containers

Top comments (0)