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
Log on to the OSS console.
In the left-side navigation pane, click Buckets.
On the Buckets page, click the name of the OSS bucket where the ROS template file is stored.
In the left-side navigation tree, choose .
On the CORS page, click Create Rule.
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
In the left-side navigation pane of the OSS console, click Buckets.
On the Buckets page, click the name of the OSS bucket where the ROS template file is stored.
In the left-side navigation tree, choose .
Click the name of the ROS template file.
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
Log on to the ROS console.
In the left-side navigation pane, choose Deployment > Stacks.
Set the Template Import Method parameter to Use URL to create or update a stack. For more information, see Create a stack and Update a stack.