OCI Scripts and example code

Huge (open source) OCI Training Library and hands-labs:
https://github.com/oracle/learning-library

Main Oracle Python SDK examples:
https://github.com/oracle/oci-python-sdk/tree/master/examples

Script for OCI’s OKE service; OKE Cluster Autoscaler Function by Cameron Sense:
https://gitlab.com/byteQualia/oke-autoscaler/-/tree/master/

Very extensive OCI Reporting tool written by Adi Zohar, now part of the OCI SDK:
https://github.com/oracle/oci-python-sdk/tree/master/examples/showoci

Usage and Cost report to AutonomousDB with APEX app to analyze
https://github.com/oracle/oci-python-sdk/tree/master/examples/usage_reports_to_adw

https://github.com/AnykeyNL/OCI-SuperDelete
The OCI Super delete script. Want to delete everything in a compartment, including all sub compartments, this script will hopefully do that for you.

https://github.com/AnykeyNL/OCI-ratecard
A script that can create your personal OCI rate card based on your cost report files. This allows you to see what discount you have on each SKU.

https://github.com/AnykeyNL/OCI_Keys
– 
Automatically create OCI SSH and PEM/API Key files
– Check it out: Download your UNIQUE OCI KEYS

https://github.com/AnykeyNL/OCI-Python
– Export all your resources to CSV / Excel format

https://github.com/AnykeyNL/OCI-AutoScale
– Scheduled Auto Scaling  for OCI Baremetal Database Cloud Service, Autonomous Database and Instance Pools
– Auto power On/Off Compute (VM) instances and DB VM instances

https://github.com/dbarj/oci-scripts
– Export all Consumption data to json
– Export all Metadata to json
– Network Security list to CSV
– Compute Instance Reshape

http://www.dominicgiles.com/blog/blog.html
– Various Database and Object Storage examples

https://github.com/bridgem/oracle-cloud
– Get your Universal Credits Balance
– Get usage/consumption over a pre-defined period.

https://github.com/oracle/oci-grafana-plugin
– This plugin makes queries to the Oracle Cloud Infrastructure Telemetry Service and displays them on Grafana

https://github.com/nshttpd/oci-tools
– oci command line tools for mortals

https://github.com/snafuz
– Andrea’s (OCI Trainer) repository with multiple OCI Scripts, mainly python based.

https://github.com/nazarenof/oci-scraper
– Nazareno’s OCI scraper script

https://github.com/enschilling/oci-resources/tree/master/oci-cli
– Eli Schilling’s repository for some handy OCI scripts based on the OCI CLI. Moving IP addresses and resource cleanup.

https://github.com/mmarukaw/oci-nigthly-stop
– Script by Masataka Marukawa to automatically turn off all resources at night, unless tagged to run at night. great for developer environments.

https://github.com/microsoft/azure-oracle
– Automation scripts to simplify Oracle workload deployments on Azure with an Interconnect to OCI

https://github.com/Olygo/OCI_Resources/tree/master/oci-audit
A script that retrieves action logs about Compute/Database/Autonomous instances from the audit logs & for a specific compartment.

https://github.com/sinanpetrustoma/autostopping
Shell scripts to stop all Autonomous Databases, DB Systems, and Compute Instances using OCI CLI. Wittten by Sinan Petrus, Solution Engineer from Oracle

Working with Puppet and OCI:
https://www.enterprisemodules.com/blog/2020/02/getting-to-know-oracle-cloud-with-puppet-part-1/
Puppet types, classes and facts to aid in Oracle Cloud Infrastructure deployments – https://forge.puppet.com/enterprisemodules/oci_config