Updating Variables for a Stack

Update the variable values used by a stack in Resource Manager.

    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. Under Resources, click Variables.
    5. Click Edit variables.
      The Configure variables page of the Edit stack dialog box is displayed.
    6. Update variable values as needed.
    7. Click Next.
    8. In the Review panel, verify your stack configuration.
    9. 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.
    10. 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 the variable values used by a stack.

    oci resource-manager stack update [...] --variables <json_input>

    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 the variable values used by a stack.

    When defining details for UpdateStackDetails, provide the updated variable values using the variables attribute.