Updated on 2023-12-13 GMT+08:00

VPC.VPC

Element Description

VPC.VPC is used to create a VPC network for Huawei public cloud products.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

cidr

Yes

Range of available subnets in the VPC

Type: string

Value Description: Range: 10.0.0.0/8-10.255.255.0/24, 172.16.0.0/12-172.31.255.0/24, or 192.168.0.0/16-192.168.255.0/24.

Default: 192.168.0.0/16

Value Constraint: The value must be in the CIDR format, for example, 192.168.0.0/16.

Suggestion: Customize the value based on the IP address range as required.

name

Yes

VPC name

Type: string

Value Description: Supports customization, for example, myvpc.

Default: ''

Value Constraint: The value is a string of no more than 64 characters. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed. When you specify a VPC name, ensure that it is unique within the account.

Suggestion: Customize the value. If this parameter is left blank, the system automatically assigns a name.

Relationships Between Elements

None.

Return Value

Property

Type

Description

refID

string

VPC ID

refName

string

VPC name

Blueprint Example

tosca_definitions_version: huaweicloud_tosca_version_1_0
inputs:
  vpc-name:
    default: vpc
    type: string
  vpc-cidr:
    default: 192.168.0.0/16
    type: string
node_templates:
  my-vpc:
    type: HuaweiCloud.VPC.VPC
    properties:
      name:
        get_input: vpc-name
      cidr:
        get_input: vpc-cidr