Resource Stack

CloudFormation allows you to quickly create and configure a group of resources by using a stack template. This group of resources is defined as a resource stack. You can manage resources in a stack by creating, updating, or deleting the stack.

Supported operations on resource stack are as follows:
  • Create a resource stack
  • Get the details of a resource stack
  • Delete a resource stack

Create a Resource Stack

In the navigation pane of the ZStack Private Cloud UI, choose Platform O&M > CloudFormation > Resource Stack. On the Resource Stack page, click Create Resource Stack. Then, the Create Resource Stack page is displayed.

To create a resource stack, follow the steps below:
  1. Configure the following parameters:
    • Zone: The current zone is automatically displayed.
    • Name: Enter a name for the resource stack.
    • Description: Optional. Enter a description for the resource stack.
    • Timeout: Specify the timeout during the resource stack creation. If the timeout period expires before the resource stack creation completes, CloudFormation marks the resource stack as failed. The timeout is 60 minutes by default.
    • Rollback on failure: Specify whether to roll back the resource stack if the creation fails. The checkbox is selected by default.
    • Create Mode: Select the resource stack creation mode.
      The following three methods for creating a resource stack are available:
      • Choose a stack template: Select a custom template or a sample template for resource stack creation.
        As shown in Figure 1.
        Figure 1. Choose a stack template


        Note: For more information about how to create a custom template, see the Stack Template topic.
      • Upload a template file: Upload a UTF8-encoded template file for resource stack creation.
        As shown in Figure 2.
        Figure 2. Upload a template file


        Note: For more information about the template syntax, see the Stack Template Syntax topic.
      • Create a template: Create a template in a text editor for resource stack creation.
        As shown in Figure 3.
        Figure 3. Create a template


        You can zoom in the text editor, as shown in Figure 4.
        Figure 4. Zoom in the text editor


        Note: For more information about the template syntax, see the Stack Template Syntax topic.
    As shown in Figure 5. Click Next.
    Figure 5. Create resource stack 1


  2. Specify each parameter according to the needed stack resource. Different parameters are specified according to different types of resource stacks.
    Note:
    • Mechanism:

      For the stack template you submitted, if CloudFormation decides what resource the Resource filed in Parameters is specified as, the UI will provide a drop-down menu for you to select a corresponding resource. Otherwise, the UI will provide an input box for you to enter a field value (a string or a number).

    The following is an example of creating a resource stack by using a selected custom template above. CloudFormation will automatically create a VM instance and attach a volume to it. Configure the following parameters:

    • Instance Offering: Select the instance offering for VM instance creation.
    • Image: Select the image for VM instance creation.
    • Private IP: Select the private network for VM instance creation.
    As shown in Figure 6. Click OK. Then, the resource stack creation starts.
    Figure 6. Create resource stack 2


    Note:
    • Before the resource stack creation starts, you can click Preview to check the resource list to be created.
    • It will take some time to create a resource stack. Please wait for the completion.

Get the Details of a Resource Stack

On the Resource Stack page, select a resource stack and expand its details page. You can get the current details of the resource stack, including basic attributes, resource stack content, resource, event, and audit.
  • Basic attributes: Displays the current status, name, description, and UUID of the resource stack. The name and description can be modified.
  • Resource stack content: Includes the details of the template and the parameters configuration.
    • Template: Displays the details of the template used by the resource stack.
    • Parameters: Displays the details of the parameters specified for resource stack creation.
  • Resource: Displays the details of all resources in the resource stack.
  • Event: Displays each event in the resource stack lifecycle.
  • Audit: Checks related operations about the resource stack.

Delete a Resource Stack

You can delete a resource stack if you no longer need it.
Note:
  • When you delete a resource stack, all resources in the stack will be deleted by default.
  • In the stack template used by a resource stack, if the DeletionPolicy field is set to Retain, all resources in the stack will be retained after you delete the resource stack. For more information about DeletionPolicy, see the Resources topic.
Download

Already filled the basic info? Click here.

Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

The download link will be sent to your email. Make sure the address you provided is valid and correct.

Download

Not filled the basic info yet? Click here.

Invalid email address or mobile number.

Email Us

contact@zstack.io

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder. After receiving the email, click the URL to download the documentation.

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder.
Or click on the URL below. (For Internet Explorer, right-click the URL and save it.)

Thank you for using ZStack products and services.

Back to Top