The lowest cost way of just mounting a bucket as a file-system would be to use Mountpoint for S3. This is an open-source file client that you can use to mount an S3 bucket on your compute instance and access it as a local file system.
Storage Gateway is your other option - but that can be more expensive.
If you just want to sync files from a local file-system to S3 in EC2 - then just use the AWS CLI together with the S3 Sync command.
Consider also using an S3 Gateway Endpoint in the VPC that your EC2 instance lives in - this will mean that traffic to S3 will not pass through your Internet Gateway - and thus not count as egress traffic from EC2.
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
- How do I use AWSSupport-CheckAndMountEFS to verify prerequisites and mount an EFS file system on a Linux instance?AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 5 months ago