Populate a resource creation page in another OCI service in the Console and then use the Save as stack button to create a stack in Resource Manager.
For example, create a stack from the Create compute instance page. Use the new stack to install, configure, and manage your compute instance through the "infrastructure-as-code" model.
Note
Some resources don't yet have the Save as stack button.
- Open the resource creation page that you want to use for a new stack.
For example, open the Create compute instance page:
- Open the navigation menu and click Compute. Under Compute, click Instances.
- Select Create instance.
Note If creating a stack from the resource creation page for a compute instance, then ensure that you review requirements for instances. See
Creating an Instance.
- Populate configuration fields to specify stack details.
For example, select the image you want to use in a stack for creating instances.
-
Select Save as stack.
Depending on resource type, one of the following opens:
- Save as stack panel (for Kubernetes clusters and other resources)
- Create stack page (for compute instances and VCNs)
- (Optional)
Edit the default stack name and enter a stack description. Avoid entering confidential information.
-
Select the compartment where you want to create the stack.
- (Optional)
Select Show advanced options and assign tags to the stack.
- Tag namespace: To add a defined tag, select an existing namespace. To add a free-from tag, leave the value blank.
- Tag key: To add a defined tag, select an existing tag key. To add a free-form tag, type the key name that you want.
- Tag value: Type the tag value that you want.
- Add tag: Click to add another tag.
-
Save the stack: Perform one of the following actions:
- Save as stack panel: Select Save.
- Create stack dialog box: Select Next twice and then select Create.
The result depends on the panel or page. For Save as stack, the Open stack link appears. For Create stack, the Stack details page opens.
-
To view a stack created from the Save as stack panel, perform one of the following actions:
- Select Open stack.
- On the Stacks list page, select the new stack. The newest stack is at the top of the list. If you need help finding the list page or the stack, see Listing Stacks.