~s3@1.0 device
S3 object storage in hyperbeam
Setup
1- add s3_device.config
{endpoint, <<"https://drive.load.network">>}.
{public_endpoint, <<"https://drive.load.network">>}.
{access_key_id, <<"your_access_key_id">>}.
{secret_access_key, <<"your_access_key">>}.
{region, <<"eu-west-2">>}.{endpoint, "http://localhost:9001"}.% Internal MinIO - dev
{public_endpoint, "https://your.hyperbeam-s3-cluster-endpoint.com"}. % Public-facing URL, used for presigned URLs
{access_key_id, <<"value">>}.
{secret_access_key, <<"value">>}.
{region, <<"value">>}.build and run the hyperbeam node
./s3_device.sh # build the s3_nif device & run local minio cluster
# if you want to connect to external s3 cluster, run ./build.sh instead
rebar3 compile
erl -pa _build/default/lib/*/ebin
1> application:ensure_all_started(hb).configurting the local minio cluster
Supported methods
Supported
Use the ~s3@1.0 device
1- create s3 client
2- create bucket
3- get object (with range)
4- put object (with expiry)
5- Generate presigned get_object url
Cache layer
1- get cached object
Hybrid gateway
Workflow
Test it
3- test retrieving dataitems
Last updated