Vast Edge has been using various tools to assist customers in seamlessly and economically managing their content on Oracle cloud by using client tools. Being an Oracle managed services provider, this is one of the most important features required for migrations / lift and shift, integrations, as well as for ongoing content management. Oracle Cloud Infrastructure (OCI) provides OCI Object Storage to store data economically and this can be accessed by using various client tools with the most popular one being cyber duck.
Below are the steps required to connect to OCI Object storage
Note: For connecting to OCI Object Storage, Cyberduck version 6.4.0 or later is required.
1) Login to OCI and create an Amazon S3 compatibility API key
Follow these steps below to generate the customer secret key
i) Login to your tenancy and go to identity -> User
ii) Select the user who has created the object storage
Elevating Your Software Product Engineering Journey with Vast Edge
iii) Now you can see the option "Customer Secrete key".Click on this option to proceed further
iv) Now click on create secret key
v) Enter user friendly name for this key
vi) Now click on "Generate Secret key" option.
vii) Always copy this secrete key right away as this will not be displayed again.
viii) Click on close
Note: Customer Secret keys do not expire. Each user can have up to two Customer Secret keys at a time.
2) Download Cyberduck from the link here. Note that only Cyberduck 6.4.0 or later has the OCI storage integration feature.
3) Download the connection profile for the region you want to use: OCI Object Storage (us-phoenix-1).cyberduckprofile
OCI Object Storage (us-ashburn-1).cyberduckprofile
OCI Object Storage (eu-frankfurt-1).cyberduckprofile
OCI Object Storage (uk-london-1).cyberduckprofile
4) For windows, double click the profile and the profile will open in Cyberduck. For Mac you can use explorer to open the profile.
5) Now change the to your tenancy name and provide the access key here.
How to Install CLI Windows?
Step 1: Installing Python
Install a supported version of Python from the Python Windows downloads page. During installation, choose to add Python to the PATH and/or environment variables (depending on the prompt).
Step 2: Creating and Configuring a Virtual Environment
The venv Python module is a virtual environment builder that lets you create isolated Python environments. We recommend installing the CLI in a virtual environment.
Installing and Activating your Virtual Environment.
After Python is installed, set up a virtual environment for your operating system using the following steps.
1. Navigate to the directory in which you would like to create the virtual environment.
2. Create the virtual environment by running the following command:
python -m venv oracle-cli
3. Activate the virtual environment by running the following command:
oracle-cli/Scripts/activate
Step 3: Installing the Command Line Interface
You can download the CLI from GitHub or install the package from Python Package Index (PyPI).
To install using the GitHub download:
1. Download and unzipoci-cli.zip.
2. Run the following command.
pip install oci_cli-*-py2.py3-none-any.whl
To install using PyPI, run the following command:
pip install oci-cli
For information on how to start a CLI session, see Starting a CLI Session.
How to Install CLI LINUX?
Linux and Unix (Including Oracle Linux 8)
1. Open a terminal.
2. To run the installer script, run the following command.
bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)"
Note*-To run a 'silent' install that accepts all default values with no prompts, use the--accept-all-defaults parameter.
Oracle Linux 7
If you're using Oracle Linux 7, you can use yum to install the CLI.
To use yum to install the CLI:
sudo yum install python36-oci-cli
The CLI will be installed to the Python site packages:
1. /usr/lib/python3.6/site-packages/oci_cli
2 ./usr/lib/python3.6/site-packages/services
Documentation and examples will be installed in the/usr/share/doc/python36-oci-cli-/directory.
To uninstall the CLI:
sudo yum remove python36-oci-cli