Guides

×
×
Home > S3 Developer Guide > Operations

Operations

jQuery(document).attr(“title”, “Welcome to Sterling Kilgore | Results Beyond Words”);

This section provides a list of operations you can perform on objects and buckets, along with samples using AWS CLI, BOTO3, Node JS, PHP, and Ruby in the IDrive Cloud’s Oregon (us-west-1) region.

Before you perform any operation, ensure that the below prerequisites are fulfilled for your preferred environment.


Prerequisites of configuration

  1. AWS CLI
  2. Sample configuration parameters in the file ~/.aws/config
    
    [default]
    region = us-east-1
    s3 =
        endpoint_url = https://s3.us-west-1.idrivecloud.io
    s3api =
        endpoint_url = https://s3.us-west-1.idrivecloud.io
    [plugins]
    endpoint = awscli_plugin_endpoint
    

    Sample credentials in the file ~/.aws/credentials

    
    [default]
    aws_access_key_id = 
    aws_secret_access_key = 
    

    Note:

    • The awscli-plugin-endpoint is used in these samples for AWS CLI for convenience (this plugin doesn’t work with BOTO3). If you don't use this plugin, '--endpoint-url' option should be used in the command for the following regions as:

       Region  Endpoint URL
       Oregon  --endpoint-url https://s3.us-west-1.idrivecloud.io
       Virginia  --endpoint-url https://s3.us-east-1.idrivecloud.io
    • To get S3 credentials (access key and secret) refer to S3 Keys.

     

  3. BOTO3
  4. Before testing any of the Python examples,

    1. Configure AWS CLI
    2. Install or update the AWS SDK for Python
  5. Node JS
  6. Before running the Node JS code,

    1. Configure AWS CLI
    2. Install or update the AWS SDK for Node JS
  7. PHP
  8. Before running the PHP code,

    1. Configure AWS CLI
    2. Install the AWS SDK for PHP Version 3
    3. Learn more about basic usage patterns of the AWS SDK for PHP
  9. Ruby
  10. Before testing any of the Ruby examples,

    1. Configure AWS CLI
    2. Install or update the AWS SDK for Ruby
© 2020 IDrive Inc.