Skip to content

Cloud CLIΒΆ

A list of cloud CLI commands that are (close to) equivalent to each other

AWS GCP Azure
Authentication
Log me in aws sso login gcloud auth login az login
Who am I? aws sts get-caller-identity gcloud auth list az account show
List accounts aws organizations list-accounts gcloud projects list az account list
Set default project aws configure set region us-east-1 gcloud config set project PROJECT az account set --subscription SUB
Configuration
Set region aws configure set region REGION gcloud config set compute/region REGION az configure --defaults location=REGION
Show config aws configure list gcloud config list az configure --list-defaults
List regions aws ec2 describe-regions gcloud compute regions list az account list-locations
Compute
List VMs aws ec2 describe-instances gcloud compute instances list az vm list
Storage
List buckets/containers aws s3 ls gsutil ls az storage account list
Upload file aws s3 cp file.txt s3://bucket/ gsutil cp file.txt gs://bucket/ az storage blob upload
Download file aws s3 cp s3://bucket/file.txt . gsutil cp gs://bucket/file.txt . az storage blob download
Networking
List VPCs/networks aws ec2 describe-vpcs gcloud compute networks list az network vnet list
Databases
List databases aws rds describe-db-instances gcloud sql instances list az sql server list
Monitoring
View logs aws logs describe-log-groups gcloud logging logs list az monitor log-analytics workspace list