Updating a Stack

Update a stack in Resource Manager.

You can update stacks in the following ways:


After updating a stack, run a plan job and then get the job logs. Monitor the job status (lifecycle state) by getting the job: Succeeded (SUCCEEDED) indicates that the job has completed. Depending on the complexity the job, the operation can take some time. While the job runs, or after it completes, you can get the job logs content.

Following are basic instructions for updating a stack.

    1. Open the navigation menu and click Developer Services. Under Resource Manager, click Stacks.
    2. Choose a compartment that you have permission to work in (on the left side of the page).
    3. Click the name of the stack that you want.
      The Stack details page opens.
    4. Click Edit.
    5. In the Stack information page of the Edit stack dialog box, change the properties you want.
      For example, upload a different Terraform configuration, or update the stack name or description. For property details, see Creating a Stack.
    6. Click Next.
      The Configure variables panel lists variables from the Terraform configuration. For property details, see Creating a Stack.
    7. Update variable values as needed.
    8. Click Next.
    9. In the Review panel, verify your stack configuration.
    10. To automatically provision resources on creation of the stack, select Run apply.

      Run apply is selected by default for stacks created from the Deploy to Oracle Cloud button or from Marketplace.
    11. Click Save changes.

    The Stack details page opens.

    If Run apply was selected, then Resource Manager runs the apply action on the updated stack.

  • Use the oci resource-manager stack update command and required parameters to update a stack.

    oci resource-manager stack update [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference for Resource Manager.

  • Use the UpdateStack operation to update a stack.