Deploy your S3 storage 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.
-
Create your objectspace using the following command.
./portal-whitesky-cloud customers create-objectspace --location=$LOCATION --customer-id=$CUSTOMER_ID --name cli-objectspace
-
Store our objectspace ID in a variable, as we will use it in further commands.
objectspace_id=YmUtbWFjLWRjMDEtMDAxOjU0MA
-
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
-
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
-
Like objectspace ID, we will store our serverpool ID in a variable, as we will use it in further commands.
serverpool_id=ce51dc3a550e46a0ab77054412ad8fc9
-
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
-
Store the IP addresses in these variables.
osip = 192.168.103.249 external_ip = 185.69.165.64
-
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.