To use a FilebaseStore in your application, set the following environment variables
- AWS_ACCESS_KEY_ID - The Access Key ID given when generating a new access key for your Bucket
- AWS_SECRET_ACCESS_KEY - The Secret Access Key given when generating a new access key for your Bucket
- S3_BUCKET_ENDPOINT - OPTIONAL - The endpoint on which your bucket is hosted. This will default to
https://s3.filebase.com
- S3_BUCKET_NAME - An arbitrary name for your Bucket
Run npm exec lincd-filebase sign -- -h
to see info about the options.
Example:
yarn lincd-filebase sign -- -key mykey -secret mysecret -bucket mybucketname -name objectkey
You can then copy the resulting two URLs and use them in your application to create a FileBaseStore.