Skip to content

Deploy your own S3 using CLI

Let's check how we can create a public S3 storage using CLI (Command Line Interface).

Using the DNS feature provided on the whitesky.cloud BV portal, you can simply create a publicly accessible S3 storage in less steps. However, this tutorial can help you understand how you can use reverse proxies with CLI.

To learn more about how you can use DNS on the whitesky.cloud BV portal, check the DNS Documentation.

You can download the whitesky.cloud BV CLI from the Donwloads. It is available for Linux, Windows and OS X operating systems (x86-64 only).

Check CLI user guide for installation steps and examples.

Steps to create S3 storage using CLI

Assign values to every variable starting with "$" in each command.

  1. Create your objectspace using the following command.

    ./portal-whitesky-cloud customers create-objectspace --location=$LOCATION --customer-id=$CUSTOMER_ID --name cli-objectspace
    
  2. Store our objectspace ID in a variable, as we will use it in further commands.

    objectspace_id=YmUtbWFjLWRjMDEtMDAxOjU0MA
    
  3. Connect your new objectspace to your cloudspace using the following command.

    ./portal-whitesky-cloud customers connect-objectspace --cloudspace-id $CLOUDSPACE_ID --customer-id $CUSTOMER_ID --objectspace-id $objectspace_id
    
  4. We will use the following command to create a new serverpool.

    ./portal-whitesky-cloud alpha create-cloudspaces-server-pool --cloudspace-id $CLOUDSPACE_ID --customer-id $CUSTOMER_ID --name cliserverpool
    
  5. Like objectspace ID, we will store our serverpool ID in a variable, as we will use it in further commands.

    serverpool_id=ce51dc3a550e46a0ab77054412ad8fc9
    
  6. Now we need to get the required address for adding host to serverpool using the following command

    ./portal-whitesky-cloud customers get-objectspace --customer-id $CUSTOMER_ID --objectspace-id $objectspace_id
    
  7. Store the IP addresses in these variables.

    osip = 192.168.103.249
    
    external_ip = 185.69.165.64
    
  8. Finally, use the following command to add the host to your serverpool.

    ./portal-whitesky-cloud alpha add-host-to-server-pool --cloudspace-id $CLOUDSPACE_ID --customer-id $CUSTOMER_ID --serverpool-id $serverpool_id --address $osip
    

You can check how to access your objectspace from MinIO client and how to share from external services to your objectspace in the user interface section.

See Also

  1. Deploy your S3 storage using whitesky.cloud BV user interface.
  2. Deploy your S3 storage using API.
  3. Create publicly accessible S3 storage using DNS.