Oracle Cloud Infrastructure
Support for Oracle’s OCI offering is ready for general availability.
Note that this is different to the Oracle cloud in Juju, which targets what Oracle now calls “OCI Classic”. We may change the names in future, but for now this new cloud provider is called “oci”.
To access this feature, you will need to install edge Juju like this:
sudo snap install juju --edge
To get started, you will need an OCI account, and you will need to generate a key-pair and upload your public key. For information on how to do this, see:
https://docs.cloud.oracle.com/iaas/Content/API/Concepts/apisigningkey.htm
You will also need to ensure you have set up a tenancy and compartment as appropriate for the needs of your OCI account. See:
https://docs.cloud.oracle.com/iaas/Content/GSG/Concepts/settinguptenancy.htm
With this done, you are ready to add a new Juju cloud and credentials.
Cloud
Save the following file as oci-cloud.yaml, replacing the region as appropriate for your account.
clouds:
oci-test:
type: oci
auth-types: [httpsig]
regions:
us-phoenix-1: {}
Then run:
juju add-cloud oci-test oci-cloud.yaml
Credential
Save the following file as oci-cred.yaml, replacing the variables as appropriate for your account.
credentials:
oci-test:
default-region: $REGION_FROM_YOUR_CLOUD_ABOVE
DEFAULT:
auth-type: httpsig
fingerprint: $FINGERPRINT_FOR_YOUR_GENERATED_KEY
key: |
$PRIVATE_KEY_YOU_GENERATED
pass-phrase: $PASSWORD_FOR_YOUR_KEY
region: $REGION_FROM_YOUR_CLOUD_ABOVE
tenancy: $OCID_FOR_YOUR_ACCOUNT_TENANCY
user: $OCID_FOR_YOUR_ACCOUNT_USER
Then run:
juju add-credential oci-test -f oci-cred.yaml
Bootstrapping
Bootstrapping requires that you supply an OCID for the compartment where you want your deployment to reside. So the bootstrap syntax is:
juju bootstrap --config compartment-id=$OCID_FOR_YOUR_COMPARTMENT oci-test