As developers, we usually don't enjoy setting up the infrastructure and environments needed to develop and deploy applications. We prefer getting straight to developing applications as quickly as possible. Recently, I was working on developing a sample application using Node.js and connecting to Oracle Autonomous Database. Typically, to do this and for any other similar development projects, I would have to spin up a VM, install all the developer tools, install the runtime needed for my project (Node.js, PHP, Java), create a Database instance etc.
In Oracle Cloud Infrastructure (OCI), our focus is to automate as much as possible. In my case, I decided to try and automate the creation of Oracle Autonomous Database using Siri on iPhone as a fun experiment. The steps below are a POC (or rather an experiment) that demonstrate how easy it is to achieve this.
oci db autonomous-database create \
--compartment-id [COMPARTMENT OCID] \
--db-name ATP1 \
--cpu-core-count 1 \
--data-storage-size-in-tbs 1 \
--admin-password [password] \
--db-workload OLTP \
--display-name "ATP1" \
--license-model LICENSE_INCLUDED \
--is-auto-scaling-enabled true \
As you can see it is extremely easy to setup and invoke commands on OCI using Siri on your iPhone. This was an example of creating an Autonomous Database instance, but you can use a similar approach and do lots of creative things using the OCI CLI and other Developer SDKs on Oracle Cloud like creating an Oracle Kubernetes Engine cluster or deploying Serverless Functions.