If you want to create or update a stack by using a Resource Orchestration Service (ROS) template file that is stored in an Object Storage Service (OSS) bucket, you must configure cross-origin resource sharing (CORS) for the OSS bucket.

Step 1: Create a CORS rule

  1. Log on to the OSS console.
  2. In the left-side navigation pane, click Buckets.
  3. On the Buckets page, click the name of the OSS bucket in which the ROS template file is stored.
  4. In the left-side navigation tree, choose Content Security > Cross-Origin Resource Sharing (CORS).
  5. Click Create Rule.
  6. In the Create Rule panel, configure the parameters and click OK.

    For more information about the parameters, see Configure CORS.

Step 2: Obtain the URL of the ROS template file

  1. In the left-side navigation pane of the OSS console, click Buckets.
  2. On the Buckets page, click the name of the OSS bucket in which the ROS template file is stored.
  3. In the left-side navigation tree, choose Files > Objects.
  4. Click the name of the ROS template file.
  5. In the URL section of the View Details panel, obtain the URL of the ROS template file.

Step 3: Use the URL of the ROS template file to create or update a stack

  1. Log on to the ROS console.
  2. In the left-side navigation pane, click Stacks.
    Set Template Import Method to Use URL to create or update a stack. For more information, see Create a stack and Update a stack.