Use Resource Orchestration Service (ROS) to provision DCDN resources. The following Resource Orchestration Service template example automatically adds a domain to DCDN.
Resource Orchestration Service (ROS)
-
Resource Orchestration Service (ROS) simplifies cloud resource management on Alibaba Cloud. You write a template to define the required Alibaba Cloud resources, such as ECS instances and RDS database instances, and their dependencies. The ROS orchestration engine automatically provisions and configures all resources in the template for automated deployment and O&M. For more information, see What is Resource Orchestration Service?.
-
You can use ROS to create DCDN resources. Only regular resources can be orchestrated.
-
Regular resource:
-
ALIYUN::DCDN::Domain: adds an accelerated domain.
-
-
Permissions
This example adds a DCDN domain. By default, Resource Orchestration Service uses the credentials of the current console user, who must have the following permission:
-
AliyunDCDNFullAccess: Manages DCDN resources.
An Alibaba Cloud account has permissions on all API operations, which poses security risks. We recommend that you use a RAM user for API access or routine O&M. Before you call API operations, grant the RAM user the required permissions based on your business requirements. The RAM user must have permissions to manage DCDN resources. For more information, see System policies for DCDN.
Procedure
-
Log on to the ROS console. In the top navigation bar, click the region drop-down list and select the target region.
-
In the left-side navigation pane, click Stacks. Then, choose .
-
Specify Template: Select Select an Existing Template.
-
Template Import Method: Select Enter Template Content.
-
-
In the Template Content section, select ROS and enter your code.
For the syntax, description, and examples of creating a DCDN instance, see ALIYUN::DCDN::Domain. The example adds an accelerated domain.
-
Click Create.
-
After the stack is created, you can view the added domain in the DCDN console or by using the OpenAPI or SDKs.
