Use a ROS sample template to deploy a WordPress environment on an ECS instance with an ApsaraDB for RDS for MySQL database.
Background
The ROS Create a WordPress environment on ECS and ApsaraDB for RDS sample template creates a CentOS 7 ECS instance and an ApsaraDB for RDS for MySQL instance, and installs WordPress.
Step 1: Create a stack
-
Log on to the Resource Orchestration Service console.
-
In the navigation pane on the left, choose .
-
On the Public Templates page, in the search box under Entry-level Templates, enter Deploy a WordPress Environment on ECS and ApsaraDB for RDS to find the public template.
-
Click Create Stack.
-
On the Configure Parameters page, enter a Stack Name and configure the following parameters.
Cloud resource
Parameter
Description
VPC
VPC CIDR Block
The CIDR block of the VPC. Example:
192.168.0.0/16.Availability zone ID
The ID of the availability zone for the vSwitch.
vSwitch CIDR Block
The CIDR block of the vSwitch, which must be a subnet of the VPC CIDR block. Example:
192.168.0.0/24.ECS
Instance Type
The ECS instance type.
Select a valid type from Instance families. Example:
ecs.c5.large.System disk category
The category of the system disk. Example:
Ultra Disk.Instance password
The ECS instance password. Example:
Test_12****.ApsaraDB for RDS
Instance specification
The ApsaraDB for RDS instance specification.
Select a valid specification from Primary ApsaraDB for RDS instance specifications. Example:
rds.mysql.t1.small.Engine version
The engine version of the ApsaraDB for RDS instance. Example:
8.0.Instance storage
Value range: 5 to 2,000, in 5 GB increments.
Unit: GB. Example: 5.
-
Click Next:Check and Confirm. Then, click Create.
-
On the Stack Information tab, check the stack status. After the stack is created, click the Output tab to find the WordPressUrl value.
WordPressUrl is the URL of your WordPress site. Open it in a browser to verify the deployment.
-
Open the WordPressUrl and log on to the WordPress admin console.
Step 2: View resources
-
In the navigation pane on the left, choose .
-
On the Stacks page, click the name of the target stack.
-
Click the Resources tab.
The following table describes the resources created by this template.
Resource
Quantity
Description
Specifications
ALIYUN::ECS::Instance
1
Creates an ECS instance to host WordPress.
-
Total quantity: 1
-
Instance specification:
ecs.c5.large -
Disk category: Ultra Disk
-
System disk size: 40 GB
-
Public IP address: Assigned
ALIYUN::ECS::VPC
1
Creates a VPC to enhance network security.
N/A
ALIYUN::ECS::VSwitch1
Creates a vSwitch in the VPC as a subnet for instances.
N/A
ALIYUN::RDS::DBInstance
1
Creates an ApsaraDB for RDS for MySQL instance to store WordPress data.
-
Storage space: 5 GB
-
Default specification:
rds.mysql.t1.small(1 vCPU, 1 GB memory)
NoteFor pricing details, see the pricing documentation for each product.
-