Creating a Cloud Stack
Create a cloud stack in Oracle Cloud Stack to provision a group of related cloud services. After selecting a template and initiating the creation of a stack, monitor its progress and status.
Tutorials are also available to help you create your first cloud stack.
You can use one of the standard Oracle stack templates, or use a custom template that you previously created or imported into Oracle Cloud Stack.
-
For more information on using a specific Oracle template, see About Oracle Stack Templates.
-
For more information about custom templates, see Creating a Template.
You cannot create a stack from a custom template that is in the unpublished state. See Publishing a Template.
In order to create a cloud stack you must have a valid subscription to all of the Oracle Cloud services of which the stack is comprised. For example, in order to use a stack template that includes an Oracle Java Cloud
Service instance, your Oracle Cloud account must have a subscription to Oracle Java Cloud
Service and it also must have the appropriate entitlements to use the desired features of Oracle Java Cloud
Service. If these requirements are not met, you will receive a Forbidden
error message.
A stack template defines zero or more named templates parameters. Values for these parameters can be provided when a stack is created. A template parameter may be mandatory (does not have a default value) or optional. A parameter’s value can also be limited to certain values or have to meet certain requirements.
If the creation of a stack fails, Oracle Cloud Stack can take one of these actions:
-
Rollback
(default): Any resources that were created as part of this stack will be deleted. -
Retain
: For troubleshooting purposes, any resources that were created as part of this stack are not deleted. See Troubleshooting for Oracle Cloud Stack.
Creating a Cloud Stack with the Console
Use the web console to create a cloud stack in Oracle Cloud Stack.
Creating a Cloud Stack with the CLI
Use the CLI to create a cloud stack in Oracle Cloud Stack.
To discover the available parameters for a template, you can download it as a file and view its contents. See Exporting a Template.
You can specify parameter values for a stack using either of these methods:
-
Enter a single string, and separate each parameter with a space.
param1:value1 param2:value2 ... paramN:valueN
-
Provide the location of a JSON file.
{ "param1":"value1", "param2":"value2", ..., "paramN":"valueN" }
To create a stack with the CLI:
For more information about the CLI commands for Oracle Cloud Stack, see psm stack Commands.