Skip to content

Instantly share code, notes, and snippets.

View didorins's full-sized avatar
👽

Dilyan Terziev didorins

👽
View GitHub Profile
@didorins
didorins / mount-s3 auto mount with systemd
Last active February 8, 2024 09:07
mount-s3 auto mount with systemd
# mount-s3 is AWS native solution to mount S3 to EC2 without the need of SGW. Downside is you don't get the performance, but still have to pay for the s3 api calls.
# Reference docs
# https://aws.amazon.com/blogs/aws/mountpoint-for-amazon-s3-generally-available-and-ready-for-production-workloads/
# https://github.com/awslabs/mountpoint-s3
# As replacement of https://github.com/s3fs-fuse/s3fs-fuse mount-s3 is missing a key feature to auto mount bucket on reboot.
# The following instructions will help you automate mounting of S3 to EC2 as persistent storage using systemd.
# Create and Attach IAM policy to instance profile role (replace resource ARN). Name of policy S3-ReadWrite-<bucketname>