Deploying to an Instance Group

Create a pipeline to deploy artifacts to instance groups.

Prerequisites

The prerequisites to deploy artifacts to an instance group are as follows:

  • Have a deployment pipeline, an instance group environment to deploy to, and artifacts. Artifacts can be defined inline or located in the Artifact Registry.

    DevOps deployment supports deploying multiple artifacts in a stage. For instance group deployment, a deployment configuration file defines the commands and runs steps to download application package artifact from the specified artifact registry and place in the target compute instance file system. See Deployment Configuration File.

  • The Compute Instance Run Command plugin must be enabled on the instance, and plugin must be running. To enable the plugin, follow these steps:
    1. In the Console, open the navigation menu, and click Compute. Under Compute, click Instances.
    2. Select an instance from the instance group to deploy to.
      Note

      DevOps only supports instance group deployments to Oracle Linux and CentOS.
    3. Click the Oracle Cloud Agent tab.
    4. For the Compute Instance Run Command plugin, toggle the Enabled Plugin switch to Enabled.

      It takes up to 10 minutes for the change to take effect.

      Caution

      Functionality that depends on the plugin, such as monitoring, autoscaling, deployment, or OS management does not work when the plugin is disabled.
      Caution

      To deploy applications using the Compute Instance Run Command plugin, you must appropriately configure and maintain least privilege policies. For more information, see Running Commands on an Instance.

      For information about managing plugins, see Managing Plugins with Oracle Cloud Agent. For troubleshooting, see Troubleshooting Oracle Cloud Agent.

  • Have permission to run commands on the instance. See the required Identity and Access Management (IAM) policy.

For creating dynamic groups and policies for deployment pipelines, see Deployment Pipeline Policies. For more details, see DevOps IAM Policies.

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