This topic describes how to use a sample template in Resource Orchestration Service (ROS) to deploy a WordPress environment based on Elastic Compute Service (ECS) and ApsaraDB RDS.
WordPress is a blog platform that is developed in the PHP programming language and paired with a MySQL database. You can use the Create a WordPress Environment Based on ECS and ApsaraDB for RDS sample template to deploy a WordPress environment based on ECS and ApsaraDB RDS. The ECS and ApsaraDB RDS instances are created on the CentOS 7 operating system.
Step 1: Create a stack
- Log on to the ROS console.
- In the left-side navigation pane, choose .
- Find the Create a WordPress Environment Based on ECS and ApsaraDB for RDS template.
- Click Create Stack.
- In the Configure Template Parameters step of the Use New Resources (Standard) wizard, set Stack Name and the following parameters.
Parameter Description Example VPC CIDR Block The CIDR block of the virtual private cloud (VPC). 192.168.0.0/16 VSwitch Availability Zone The zone ID of the vSwitch. Beijing Zone K VSwitch CIDR Block The CIDR block of the vSwitch. The value must be within the range of the CIDR block of the VPC. 192.168.0.0/24 Instance Type The instance type of the ECS instance.
Select a valid instance type. For more information, see Instance families.
ecs.c5.large Image The image ID of the ECS instance. By default, centos_7 is used.
For more information, see Image overview.
centos_7 Instance Password The password that is used to log on to the ECS instance. Test_12**** DB Instance Class The instance type of the ApsaraDB RDS instance.
Select a valid instance type. For more information, see Primary ApsaraDB RDS instance types.
rds.mysql.t1.small Engine The type and version number of the database engine. MySQL-5.6 DB Instance Storage The storage capacity of the ApsaraDB RDS instance.
Valid values: 5 to 1000. The value must be in 5 increments.
5 DB Name The name of the ApsaraDB RDS database. wordpress DB Username The username that is used to connect to the ApsaraDB RDS database. wpuser DB Password The password that is used to connect to the ApsaraDB RDS database. Test_13****
- Click Create.
- View the stack status on the Stack Information tab of the stack management page. After the stack is created, click the Outputs tab to view the WordPress URL.
- Use the WordPress URL to log on to the WordPress management console.
Step 2: View resources
- In the left-side navigation pane, click Stacks.
- On the Stacks page, click the stack that you created.
- On the stack management page, click the Resources tab to view the resource list. The following table describes the resources in this example.
Resource type Quantity Description Specifications ALIYUN::ECS::Instance 1 Creates an ECS instance to deploy the WordPress service.
- A single instance of the following specifications is created:
- InstanceType: ecs.c5.large
- SystemDiskCategory: cloud_efficiency
- SystemDiskSize: 40 (Unit: GB)
- AllocatePublicIP: true
ALIYUN::ECS::VPC 1 Creates a VPC to ensure network security. None ALIYUN::ECS::VSwitch 1 Creates a vSwitch in the VPC to manage instances within a zone. None ALIYUN::RDS::DBInstance 1 Creates an ApsaraDB RDS for MySQL database to store data of the WordPress service.
Note For more information about the resource charges, see the pricing schedule on the official website or the product pricing documentation.
- DBInstanceStorage: 5 (Unit: GB)
- DBInstanceClass: rds.mysql.t1.small (1 core, 1 GB memory)