Creating a Compute Instance Group Environment

Create a reference to an instance group environment.

Prerequisites

The prerequisites to create an instance group environment are as follows:

  • Create a compute instance.

    If you are creating an instance through a private network, then Network Address Translation (NAT) gateway must be set up. For more information, see NAT Gateway.

    Note

    DevOps only supports instance group deployments to Oracle Linux and CentOS.
  • If any of your commands in the instance group deployment configuration artifact require sudo privileges, then you have to grant ocarun user with sudo privileges. Follow these steps:
    1. Follow the steps for creating an instance.
    2. To configure advanced settings, click Show Advanced Options.
    3. For Initialization Script, enter the following cloud-init script to grant the sudo privilege:
      #cloud-config
      users:
       - default
       - name: ocarun
         sudo: ALL=(ALL) NOPASSWD:ALL
    4. When you finish configuring the instance, click Create.

    For more information, see Running Commands on an Instance.

For accessing DevOps using the Oracle Cloud Console, REST API, and CLI, see Accessing DevOps.

Was this article helpful?