All Products
Search
Document Center

Resource Orchestration Service:Deploy a WordPress environment based on ECS and ApsaraDB RDS

Last Updated:Jul 29, 2024

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.

Background information

WordPress is a blog platform that is developed in PHP and paired with a MySQL database. You can use the Create a WordPress Environment Based on ECS and ApsaraDB for RDS sample template of ROS to deploy a WordPress environment by creating an ECS instance that runs CentOS 7 and an ApsaraDB RDS for MySQL instance.

Step 1: Create a stack

  1. Log on to the ROS console.

  2. In the left-side navigation pane, choose Templates > Sample Templates.

  3. Find the Create a WordPress Environment Based on ECS and ApsaraDB for RDS template.

  4. Click Create Stack.

  5. In the Configure Parameters step, configure 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 a subnet of the VPC CIDR block.

    192.168.0.0/24

    Instance Type

    The instance type of the ECS instance.

    Select a valid instance type. For more information, see Overview of instance families.

    ecs.c5.large

    System Disk Type

    The category of the system disk.

    cloud_efficiency

    Instance Password

    The password of the ECS instance.

    Test_12****

    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 Version

    The engine version of the ApsaraDB RDS database.

    MySQL-5.6

    Instance Storage

    The storage space of the ApsaraDB RDS instance.

    Valid values: 5 to 2000. The value must be in increments of 5.

    Unit: GB.

    5

    DB Name

    The name of the ApsaraDB RDS database.

    wordpress

    DB Username

    The username of the ApsaraDB RDS database.

    wpuser

    DB Password

    The password of the ApsaraDB RDS database.

    Test_13****

  6. Click Create.

  7. On the Stack Information tab, check the status of the stack. Wait until the stack is created. Then, click the Outputs tab to obtain the value of WordPressUrl.

    WordPress

  8. Use the value of WordPressUrl to log on to the WordPress management console.

Step 2: View resources

  1. In the left-side navigation pane, click Stacks.

  2. On the Stacks page, click the name of the created stack.

  3. Click the Resources tab to view the information about resources in the stack.

    The following table describes the resources in this example.

    Resource

    Quantity

    Description

    Specifications

    ALIYUN::ECS::Instance

    1

    Creates an ECS instance to deploy the WordPress service.

    An ECS instance that has the following specifications is created:

    • Instance type: ecs.c5.large.

    • Disk category: ultra disk.

    • System disk size: 40 GB.

    • Public IP address: A public IP address is allocated.

    ALIYUN::ECS::VPC

    1

    Creates a VPC to enhance network security in the cloud.

    None.

    ALIYUN::ECS::VSwitch

    1

    Creates a vSwitch in the VPC to manage instances in a zone.

    None.

    ALIYUN::RDS::DBInstance

    1

    Creates an ApsaraDB RDS for MySQL instance to store data of the WordPress service.

    • Storage space: 5 GB.

    • Default specifications: rds.mysql.t1.small, 1 vCPU, and 1 GB memory.

    Note For more information about the resource charges, see the pricing schedule on the official website or the product pricing documentation.