Oracle

In Oracle Cloud , a Spinnaker Account maps to an Oracle Cloud Infrastructure user .

When setting up your Oracle Cloud provider account, you will use halyard to add the account .

Prerequisites

You will need the following to enable Oracle Cloud provider in Spinnaker:

  • A user in IAM for the person or system who will be using Spinnaker, and put that user in at least one IAM group with any desired permissions. See Adding Users .
  • The user’s home region. See Managing Regions . (e.g. --region us-ashburn-1)
  • RSA key pair in PEM format (minimum 2048 bits). See How to Generate an API Signing Key . (e.g. --ssh-private-key-file-path /home/ubuntu/.oci/myPrivateKey.pem)
  • Fingerprint of the public key. See How to Get the Fingerprint of the Key . (e.g. --fingerprint 11:22:33:..:aa)
  • Tenancy’s OCID and user’s OCID. See Where to Get the Tenancy and User OCIDs . (e.g. --tenancyId ocid1.tenancy.oc1..aa... --user-id ocid1.user.oc1..aa...)
  • Compartment OCID: On Oracle Cloud Console, open the navigation menu. Under Governance and Administration, go to Identity and click Compartments. See Managing Compartments . (e.g. --compartment-id ocid1.compartment.oc1..aa...)
  • Upload the public key from the key pair in the Console. See How to Upload the Public Key .

Add an Oracle Cloud account

  1. Run the following hal command to add an account named my-oci-acct to your list of Oracle Cloud accounts:

    1. hal config provider oracle account add my-oci-acct \
    2. --compartment-id $COMPARTMENT_OCID \
    3. --fingerprint $API_KEY_FINGERPRINT \
    4. --region $REGION \
    5. --ssh-private-key-file-path $PRIVATE_KEY_FILE \
    6. --tenancyId $TENANCY_OCID \
    7. --user-id $USER_OCID

    For example

    1. hal config provider oracle account edit my-oci-acct \
    2. --compartment-id ocid1.compartment.oc1..aaaaaaaatjuwhxwkspkxhumqke4o73b2b \
    3. --fingerprint 8f:05:f4:94:f3:5f:e3:30:ec:35 \
    4. --region us-phoenix-1 \
    5. --ssh-private-key-file-path /home/user/.oci/oci_api_key.pem \
    6. --tenancyId ocid1.tenancy.oc1..aaaaaaaa225wmphohi3iiyxxxjruo \
    7. --user-id ocid1.user.oc1..aaaaaaaagosdr3zsh67tvgpnmw42ywqc
  2. Enable the Oracle Cloud provider:

    1. hal config provider oracle enable

Last modified December 22, 2021: docs(fix): Fix various encoding issues (#170) (0475fe5)