Skip to content

Instantly share code, notes, and snippets.

View manuelbcd's full-sized avatar
🎯
Engaged

manuelbcd manuelbcd

🎯
Engaged
View GitHub Profile
@oehrlis
oehrlis / oci_cli_commands.md
Last active July 20, 2022 16:56
Miscellaneous oci cli commands

Below you find a couple of oci cli commands and examples. Query syntax http://jmespath.org/examples.html#filters-and-multiselect-lists

list all activ compartments

oci iam compartment list --all --output table --compartment-id-in-subtree true \
--query "data [?\"lifecycle-state\" =='ACTIVE'].{Name:name,OCID:id}"

list all inactive compartments

oci iam compartment list --all --output table --compartment-id-in-subtree true \

@jokeru
jokeru / aws_delete-default-vpc.sh
Created March 31, 2018 15:14
Script to delete all AWS default VPCs from all regions using AWS CLI
#!/usr/bin/env bash
if [ "$AWS_PROFILE" = "" ]; then
  echo "No AWS_PROFILE set"
  exit 1
fi
for region in $(aws ec2 describe-regions --region eu-west-1 | jq -r .Regions[].RegionName); do
@dcasati
dcasati / export-kubeconfig-from-aks
Created February 6, 2018 15:30
Export KUBECONFIG from AKS
az aks get-credentials --resource-group k8s-demo-ss --name k8s-demo-cluster-ss --file kubeconfig-ss