To create or update a stack by using a Resource Orchestration Service (ROS) template file 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 Content Security > CORS.
On the CORS page, click Create Rule.
In the Create Rule panel, configure the parameters, and then click OK.
For more information, 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 Object Management > Objects.
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 Template Import Method to Use URL to create or update a stack. For more information, see Create a stack and Update a stack.