Installation Setup Of Openshift CLI in Linux: A Step-By-Step Guide

Step 1: Firstly, we need to login to AWS Console with credentials or else create account.

  • Now go to EC2 instance dashboard and launch an Instance with specifications is Amazon Linux 2 Kernel 5.10(AMI) along with allow all traffic by selecting storage t3. small

Step 2: After launching an instance connect it with Git bash terminal by using PEM File or else any other terminals which is available like powershell, putty, GIT GUI e.t.c..

Step 3: Download the OpenShift CLI binary with the following command with link:

wget https://mirror.openshift.com/pub/openshift-v4/clients/oc/latest/linux/oc.tar.gz

Step 4: Extract the tar.gz file with the following command:

tar -xzvf oc.tar.gz

Step 5: Move the oc binary to a directory in your PATH:

sudo mv oc /usr/local/bin/

Step 6: Verify the installation with the following command:

oc version

Step 7: Installation of AWS CLI

  • Make sure you have AWS CLI installed on your machine. You can download and install it from the official AWS CLI website.
  • Open your terminal or command prompt where you want to configure the AWS CLI.

Run AWS Configure: Execute the following command to start the configuration process

aws configure

Step 8: Enter AWS Access Key ID

AWS Access Key ID [None]: YOUR_ACCESS_KEY_ID
  • Enter AWS Secret Access Key: Next, enter the AWS Secret Access Key corresponding to the Access Key ID you provided in the previous step.
AWS Secret Access Key [None]: YOUR_SECRET_ACCESS_KEY
  • Choose Default Region: Enter your preferred default region. This is the AWS region where your resources will be created if you don’t specify a region in your commands.
Default region name [None]: your-preferred-region
  • Choose Default Output Format: Choose the default output format. Common choices are json, text, or table.
Default output format [None]: json

Step 9: Verify Configuration

  • The AWS CLI will display a summary of the information you entered. Verify that the details are correct.
AWS Access Key ID: YOUR_ACCESS_KEY_ID
AWS Secret Access Key: YOUR_SECRET_ACCESS_KEY
Default region name: your-preferred-region
Default output format: json
  • Configuration Complete: Once you’ve verified the configuration, the AWS CLI will confirm that the configuration is complete.
  • AWS CLI is now configured.

Step10: Test Your Configuration by running a simple AWS CLI command to test your configuration, for example:

aws s3 ls

  • This command lists the S3 buckets in your account. If the configuration is correct, you should see a list of your S3 buckets if any bucket are created in your account.

OpenShit CLI

OpenShift CLI is an amazing tool that works with the management of resources inside the OpenShift container platform. In this article, we will investigate the different parts of the OpenShift CLI, its elements, establishment systems, and give instances of orders to arrangement and deletion of resources.

The OpenShift CLI (Command Line Interface) is a tool for interacting with and managing OpenShift container platform resources from the command line. It gives engineers and heads a strong and productive method for performing different undertakings, for example, sending applications, scaling assets, overseeing clients, and observing the stage.

Similar Reads

What Is The Openshift CLI?

The OpenShift CLI (Command Line Interface) is a tool for interacting with and managing OpenShift container platform resources from the command line. It gives developer and heads a strong and productive method for performing different undertakings, for example, sending applications, scaling assets, overseeing clients, and observing the stage....

Installation Setup Of Openshift CLI in Linux: A Step-By-Step Guide

Step 1: Firstly, we need to login to AWS Console with credentials or else create account....

Examples Of Openshift Commands

Example 1 : Verify Installation...

Features Of Openshift CLI

The following are the features of openshift CLI:...

Advanced Features of OpenShift CLI

The following are the advanced features of Openshift CLI:...

Conclusion

In conclusion, the OpenShift CLI is a useful asset that goes past essential asset the executives. Its high level elements engage clients to carry out refined arrangement techniques, modify asset definitions, oversee complex systems administration setups, handle capacity, implement role based access control, integrate with source control, and influence progressed logging and monitoring abilities....

Openshift CLI – FAQs

What Is OpenShift CLI Used For?...

What Is OpenShift CLI Used For?

OpenShift CLI (oc) is utilized to associate with and oversee assets inside the OpenShift compartment stage. It permits clients to send applications, manage projects, scale resources, and perform different procedure on OpenShift clusters....