Updated on 2025-07-14 GMT+08:00

Quick Deployment

This section helps you quickly deploy a Magento e-commerce website on Huawei Cloud.

Table 1 Parameters for building a Magento e-commerce website

Parameter

Type

Mandatory

Description

Default Value

enterprise_project_id

string

Yes

Enterprise project ID. You can find the ID on the Enterprise Project Management Service console. 0 indicates the default enterprise project.

0

vpc_name

string

Yes

Virtual Private Cloud (VPC) name. This template uses a newly created VPC and the VPC name must be unique. It can contain 1 to 60 characters, including only letters, digits, underscores (_), hyphens (-), and periods (.).

magento-ecommerce-website-demo

security_group_name

string

Yes

Security group name. This template uses a newly created security group. For details about how to configure security group rules, see (Optional) Modifying Security Group Rules. It can contain 1 to 64 characters, including only letters, digits, underscores (_), hyphens (-), and periods (.).

magento-ecommerce-website-demo

eip_bandwidth_size

number

Yes

Bandwidth size, in Mbit/s, of the EIP that is bound to the load balancer and is used to access the Magento website. The EIP is billed by bandwidth. Value range: 1-2,000

5

rds_name

string

Yes

RDS instance name, which must be unique. The value can contain 4 to 64 characters, including only letters, digits, hyphens (-), and underscores (_). It must start with a letter.

magento-ecommerce-website-demo

rds_flavor

string

Yes

RDS instance flavor. For more flavors, see RDS for MySQL Instance Classes.

rds.mysql.n1.xlarge.2.ha

rds_volume_size

number

Yes

RDS instance disk size. The default storage type is cloud SSD, and the unit is GB. The value must be an integer multiple of 10. Value range: 40-4,000

100

rds_password

string

Yes

Password of an RDS instance. The default administrator account is root. The password can contain 8 to 32 characters, which must include at least three types of the following characters: uppercase letters, lowercase letters, digits, or the following special characters: (~!@#%^-_=)

Left blank

redis_name

string

Yes

Name of a DCS for Redis instance. The value can contain 4 to 64 characters, including only letters, digits, hyphens (-), and underscores (_). It must start with a letter or digit.

magento-ecommerce-website-demo

redis_capacity

number

Yes

Total memory of master/standby DCS Redis instances. The unit is GB. For details, see Redis 6.0 Instance Specifications.

2

redis_password

string

Yes

Initial password of a DCS for Redis instance. The value can contain 8 to 64 characters, including at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters: (~!@#%^-_=)

Left blank

css_name

string

Yes

Name of a CSS Elasticsearch cluster. The value can contain 4 to 32 characters, including only letters, digits, hyphens (-), and underscores (_). It must start with a letter.

magento-ecommerce-website-demo

elasticsearch_flavor

string

Yes

Elasticsearch cluster node specification. The specification can be Compute-intensive: ess.spec-4u8g, ess.spec-8u16g, ess.spec-16u32g, and ess.spec-32u64g; General computing: ess.spec-4u16g, ess.spec-8u32g, ess.spec-16u64g, and ess.spec-32u128g; Memory-optimized: ess.spec-4u32g, ess.spec-8u64g, ess.spec-16u128g, and ess.spec-32u256g.

ess.spec-4u8g

elasticsearch_node_number

number

Yes

Number of Elasticsearch cluster nodes. Three or more nodes are recommended for high availability. Value range: 1-32

3

elasticsearch_volume_size

number

Yes

Disk size of Elasticsearch cluster nodes. The default node storage type is Ultra-high I/O. The value varies depending on the specifications. Value range: 40-20,480

100

elasticsearch_password

string

Yes

Initial password of the Elasticsearch cluster admin in the specific security mode. Do not use the administrator name, or the administrator name spelled backwards. The value can contain 8 to 32 characters, including at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters: (~!@#%^-_=)

Left blank

cbr_vault_name

string

Yes

Name of the CBR server backup vault. It is used to create a full-ECS image for Magento server backups. The default image name is {ecs_name}-ims. The value can contain 1 to 64 characters, including only letters, digits, underscores (_), and hyphens (-).

magento-ecommerce-website-demo

sfs_turbo_name

string

Yes

SFS Turbo name. The value can contain 4 to 64 characters, including only letters, digits, underscores (_), and hyphens (-). It must start with a letter.

magento-ecommerce-website-demo

sfs_turbo_size

number

Yes

SFS Turbo capacity, in GB. The default file system type is Standard. Value range: 500-32,768

500

ecs_name

string

Yes

Elastic Cloud Server (ECS) name, which must be unique. The naming format is {ecs_name}-X. X can be from 1 to 16. The value can contain 1 to 52 characters, including only letters, digits, underscores (_), hyphens (-), and periods (.).

magento-ecommerce-website-demo

ecs_number

number

Yes

ECS quantity. Value range: 2-16

2

ecs_flavor

string

Yes

ECS flavor. You are advised to use an ECS with 4 vCPUs and 8 GB memory or higher specifications. For more flavors, see A Summary List of x86 ECS Specifications.

s6.xlarge.2

ecs_password

string

Yes

ECS password. The value can contain 8 to 26 characters, including at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters: (~!@#%^-_=) The default administrator account is root.

Left blank

system_disk_size

number

Yes

The system disk size of the ECS. The default disk type is General Purpose SSD, and the unit is GB. The system disk can only be increased. Value range: 40-1,024

100

elb_name

string

Yes

Load balancer name. The value can contain 1 to 64 characters, including only letters, digits, underscores (_), hyphens (-), and periods (.).

magento-ecommerce-website-demo

magento_admin_firstname

string

Yes

Username of the Magento administrator. The value can contain 1 to 40 characters, including letters, digits, underscores (_), hyphens (-), and hyphens, and periods (.).

magento

magento_admin_lastname

string

Yes

Last name of the Magento administrator. The value can contain 1 to 40 characters, including letters, digits, underscores (_), hyphens (-), and periods (.).

magento

magento_admin_passwd

string

Yes

Password of the Magento administrator. The default username or logging in to the Magento website is admin. The password must contain at least seven characters, including at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters: (~!@#%^-_=), and it cannot contain any username or the username spelled backwards.

Left blank

magento_admin_email

string

Yes

Email address used by the Magento administrator, which can be a personal or an enterprise email address.

Left blank

magento_public_key

string

Yes

Public authentication keys generated by your Commerce Marketplace account. For details, refer to Get your authentication keys.

Left blank

magento_private_key

string

Yes

Private authentication keys generated by your Commerce Marketplace account.

Left blank

charging_mode

string

Yes

Billing mode. By default, expenses are automatically deducted. The value can be postPaid (pay-per-use) or prePaid (yearly/monthly).

postPaid

charging_unit

string

Yes

Subscription period type. This parameter is valid only when the charging_mode is set to prePaid (yearly/monthly). The value can be month or year.

month

charging_period

number

Yes

Subscription period. This parameter is valid only when charging_mode is set to prePaid (yearly/monthly). Value range: 1-9 (charging_unit set to month); 1-3 (charging_unit set to year)

1

  1. Log in to Huawei Cloud Quick-Start Guides and choose Building a Magento E-Commerce Website. Select a region from the Data Center drop-down list and click Deploy.

    Figure 1 Selecting a solution

  1. On the Select Template page, click Next.

    Figure 2 Selecting a template

  2. On the Configure Parameters page, enter a stack name, configure parameters based on Table 1, and click Next.

    Figure 3 Configuring parameters

  3. On the Configure Stack page, select rf_admin_trust from the Agency drop-down list and click Next. This step is optional if you use an account (HUAWEI ID) or use an IAM user in the admin user group.

    Figure 4 Configuring a stack

  4. On the Confirm Configurations page, confirm the configurations and click Create Execution Plan.

    Figure 5 Confirming the configurations

  5. In the displayed Create Execution Plan dialog box, enter an execution plan name and click OK.

    Figure 6 Creating an execution plan

  6. Wait until the status of the execution plan changes to Available and then click Deploy in the Operation column. In the displayed dialog box, click Execute.

    Figure 7 Execution plan page
    Figure 8 Confirming the execution plan

  7. (Optional) If you select the yearly/monthly billing mode and your account balance is insufficient, log in to the Billing Center to manually pay for the order. You can refer to Table 1 to see the total price.
  8. Wait until the message "Apply required resource success" is displayed on the Events tab page. This means the deployment is complete. The deployment takes about 30 minutes, which will be delayed by network fluctuations.

    Figure 9 Resources created