Updated on 2024-03-05 GMT+08:00

Testing an Automatic Deployment Template

Procedure

  1. Install Terraform and use environment variables to configure authentication information for Terraform. For details, see Getting Started with Terraform. If your device runs Windows, run the following commands to set environment variables:

    set HW_REGION_NAME=cn-north-4 [C(1] 
    set HW_ACCESS_KEY=your ak  
    set HW_SECRET_KEY=your sk

  2. Open the command line interface (CLI), go to the template directory, run the following commands, and enter the configuration information as prompted:

    terraform init [C(1] 
    terraform plan 
    terraform apply

  3. Log in to the Huawei Cloud console and view the created cloud service.

The cloud resources created in this example are charged. If you do not need these resources, run the terraform destroy command to delete them in a timely manner.