AWS SDK - Ruby
Learn how to use the AWS SDK for Ruby with Filebase.
Last updated
Was this helpful?
Learn how to use the AWS SDK for Ruby with Filebase.
Last updated
Was this helpful?
AWS SDKs (software development kits) help simplify coding and application development by supporting and providing code objects for use with S3-compatible services. There are a variety of different AWS SDKs, each for a different coding language. This guide covers AWS SDK - Ruby.
This guide was written using Ubuntu 20.04 and tested using the command line interface. If you are using an Integrated Development Environment (IDE), the installation of dependencies and modules will vary.
The following code example creates a new Filebase bucket. Replace the following values in the code to match your configuration:
filebase-access-key: Your Filebase Access Key
filebase-secret-key: Your Filebase Secret Key
new-filebase-bucket: The Intended New Bucket Name
The following code example uploads an object to the specified bucket. Replace the following values in the code to match your configuration:
filebase-access-key: Your Filebase Access Key
filebase-secret-key: Your Filebase Secret Key
filebase-bucket-name: The Filebase Bucket Name
/path/to/object/to/upload: The file path to the object that you want to be uploaded
object-name: The desired object name once uploaded
The following code example downloads an object from the specified bucket. Replace the following values in the code to match your configuration:
filebase-access-key: Your Filebase Access Key
filebase-secret-key: Your Filebase Secret Key
filebase-bucket-name: The Filebase Bucket Name
object-name: The object to be downloaded
The following code example deletes an object from the specified bucket. Replace the following values in the code to match your configuration:
filebase-access-key: Your Filebase Access Key
filebase-secret-key: Your Filebase Secret Key
filebase-bucket-name: The Filebase Bucket Name
object-name: The object to be downloaded