AWS / Google Cloud / Azure / OCI client setup

In order to work with Multi Cloud environment, it is inevitable to work with command line for different cloud providers. This page documents the command line installation.

AWS

#to install the cli
choco install awscli

# to setup
aws configure

# to check
aws configure list 

# setup default env
set AWS_CONFIG_FILE=c:\Users\Jimmy\.aws\config
set AWS_SHARED_CREDENTIALS_FILE=c:\Users\Jimmy\.aws\credentials

Google Cloud

(New-Object Net.WebClient).DownloadFile("https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe", "$env:Temp\GoogleCloudSDKInstaller.exe")

& $env:Temp\GoogleCloudSDKInstaller.exe

gcloud auth login
# OR
gcloud auth activate-service-account

Created a default .boto configuration file at [C:\Users\Jimmy\.boto].

Azure

choco install azure-cli
az login

OCI

Set-ExecutionPolicy RemoteSigned

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 

Invoke-WebRequest https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.ps1 -OutFile install.ps1

./install.ps1 -AcceptAllDefaults