Oracle by Example brandingEdit a Stack for Oracle WebLogic Server for OCI

section 0Before You Begin

This 10-minute tutorial shows you how to edit a stack associated with Oracle WebLogic Server for Oracle Cloud Infrastructure (Oracle WebLogic Server for OCI) domain by using Resource Manager.


Marketplace uses Oracle Resource Manager to provision the network, compute instances, and load balancer as single unit called a stack. A stack includes a basic Oracle WebLogic Server 12c domain, one or more WebLogic Server compute instances, network resources, and an optional load balancer.

You can use the Oracle Resource Manager to edit the stack to resize your Oracle WebLogic Server for OCI domain to meet the changing workload requirements.

This tuotrial uses a stack that is provisioned for an Oracle WebLogic Server for OCI domain using a new VCN and new subnet.


  • You can only edit the displayed variables for Oracle WebLogic Server for OCI stacks that are provisioned after 20.3.1 version.
  • You can edit all the variables for Oracle WebLogic Server for OCI stacks that are provisioned before 20.3.1 version. In this case, it is important to be careful because certain stack variables will destroy and re-provision the stack. Customizations made to the stack may also be lost.

What Do You Need?

  • An Oracle Cloud Infrastructure cloud tenant.
  • An Oracle Cloud Infrastructure user name and password.
  • A duly created stack in a compartment.

section 1Edit a Stack

  1. Sign in to the Oracle Cloud Infrastructure console.
  2. Click the navigation menu Menu icon, select Developer Services. Under Resource Manager group, select Stacks.
  3. From the Compartment dropdown, select the compartment where your stack is located.
  4. Click the name of your stack.
  5. Click Edit Stack.
  6. (Optional) On the Stack Information page, upload the Terraform Configuration source files. You can upload the Terraform Configuration source as a folder or .ZIP file.
  7. (Optional) Edit name and description of the stack.

    Note: You cannot edit the Terraform Version.

  8. Click Next.

    The Configure Variables page appears.

  9. Select the Weblogic Server Node Count to add a compute instance.
  10. For Weblogic Server Shape, select the shape of the new compute instance. If you select a flexible shape, you can specify the OCPU Count for the compute instance shape.

    To change the shape of an existing compute instance, see Change Compute Instance Shape.

  11. For the SSH Public Key, upload the SSH public key file to access the new compute instance. You can also paste the contents of the SSH public key file.

    The key will be used for new compute instances only. The keys for existing compute instances remain unchanged.

  12. Select the Weblogic Server Nodes Limit to scale the domain.
  13. (Optional) If you have updated the WebLogic Server administrator password, then enter the OCID of the secret that contains the password for the WebLogic Server administrator.
  14. If you want Oracle WebLogic Server for OCI to create compute instances but not update your domain configuration, select Do Not Update Domain Configuration For Scale Out.

    If you select Do Not Update Domain Configuration For Scale Out, then you must manually update your domain configuration and add the managed servers. Use the WebLogic Server Administration Console or the WebLogic Server Scripting Tool (WLST).

  15. Click Add Load Balancer and select Create New Load Balancer.

    Now, you can edit Load Balancer Subnet CIDR, and then select the Load Balancer Shape (optional).

  16. Select the Add File System Storage check box.

    If you select the Add File System Storage check box, you will be able to edit File Storage Availability Domain (optional), and then select the Mount Target Subnet CIDR.

  17. Click Next.
  18. Review the updated Stack information and then click Save Changes.
  19. Click Terraform Actions and then click Apply.
  20. When prompted for confirmation, click Apply.

more informationWant to Learn More?