{{tag>Cloud AWS}}
= AWS Cloud S3FS
Voir :
* [[Notes MinIO s3]]
* [[Notes rclone]]
* https://www.nakivo.com/blog/mount-amazon-s3-as-a-drive-how-to-guide/
* https://docs.podman.io/en/latest/markdown/podman-volume-create.1.html
* https://blog.stephane-robert.info/docs/services/stockage/minio/
* https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html
== S3 Alternatives
Voir :
* MinIO
* Scality-s3
* riakcs
* Zenko (multi-cloud)
* Garage S3
Voir aussi :
* Ceph
* IPFS
''/etc/systemd/system/mnt-shared.mount''
[Unit]
Description=Partage S3
[Mount]
What=bucketname
Where=/mnt/shared
Type=fuse.s3fs
Options=_netdev,noatime,noexec,nosuid,nodev,allow_other,iam_role=auto,umask=0000,endpoint=eu-central-1,url=http://s3-eu-central-1.amazonaws.com
Environment= "http_proxy=" "https_proxy="
# If supported by the version of systemd. Really necessary ?
#LazyUnmount=True
[Install]
WantedBy=multi-user.target
''/etc/systemd/system/mnt-shared.automount''
[Unit]
Description=Automount Partage S3
Requires=network-online.target
After=network-online.service
[Automount]
Where=/mnt/shared
TimeoutIdleSec=10
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl disable mnt-shared.mount
systemctl enable mnt-shared.automount
== Debug
systemctl status /mnt/shared
journalctl -u /mnt/shared
killall s3fs
killall -9 s3fs
umount -l /mnt/shared
systemctl stop mnt-shared.mount
systemctl stop mnt-shared.automount
s3fs bucketname /mnt/s3 -o endpoint=eu-central-1 -o url=http://s3-eu-central-1.amazonaws.com -o iam_role=auto -o dbglevel=info -o curldbg -d -f
== Autres
=== Client S3
Voir :
* [[Notes MinIO s3]]
* s3cmd
* s5cmd
* [[Notes rclone]]
* s3ql
=== Ansible
- name: service mount
systemd: daemon_reload=yes name=mnt-shared.mount
- name: service automount
systemd: enabled=yes daemon_reload=yes name=mnt-shared.mount.automount
==== Scality-S3
https://titanwolf.org/Network/Articles/Article?AID=614203c5-f7e6-4f31-b868-c70f86d08ccd
==== MinIO
https://www.nextinpact.com/article/30308/106520-minio-creez-simplement-votre-propre-service-stockage-objet-compatible-s3-et-distribue
https://www.nextinpact.com/article/30267/108762-minio-client-gerez-stockage-compatible-s3-en-ligne-commandes-ou-dans-scripts