You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| <aname="input_private_ip"></a> [private\_ip](#input\_private\_ip)| The primary private IP address of the ENI. The specified IP address must be available within the CIDR block of the VSwitch. If this parameter is not specified, an available IP address is assigned from the VSwitch CIDR block at random. |`string`|`""`| no |
42
+
| <aname="input_region"></a> [region](#input\_region)| The region where the resources will be created. |`string`|`"cn-beijing"`| no |
43
+
| <aname="input_source_ip"></a> [source\_ip](#input\_source\_ip)| The IP address you used to access the ENI. |`string`|`"0.0.0.0/0"`| no |
44
+
| <aname="input_vpc_cidr_block"></a> [vpc\_cidr\_block](#input\_vpc\_cidr\_block)| Specify the CIDR block of the VPC. If the vpc\_id is provided, this value can be left blank. |`string`|`"192.168.0.0/16"`| no |
45
+
| <aname="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id)| When binding an ENI to an existing ECS instance, this value is required and must be the VPC associated with the ECS instance. |`string`|`""`| no |
46
+
| <aname="input_vswitch_cidr_block"></a> [vswitch\_cidr\_block](#input\_vswitch\_cidr\_block)| Specify the CIDR block of the VSwitch. The CIDR block must be within the range of the VPC CIDR block. |`string`|`"192.168.0.0/24"`| no |
47
+
| <aname="input_zone_id"></a> [zone\_id](#input\_zone\_id)| When binding an ENI to an existing ECS instance, this value is required and must be the zone where the ECS instance is located. |`string`|`""`| no |
48
+
<!-- END_TF_DOCS -->
49
+
50
+
<!-- docs-link -->
51
+
52
+
The template is based on Aliyun document: [How to bind EIPs to ECS elastic network interface](https://help.aliyun.com/document_detail/156980.html)
description="When binding an ENI to an existing ECS instance, this value is required and must be the VPC associated with the ECS instance."
15
+
}
16
+
17
+
# 指定VPC的CIDR块,当填入vpc_id时,该值可不填。
18
+
variable"vpc_cidr_block" {
19
+
default="192.168.0.0/16"
20
+
description="Specify the CIDR block of the VPC. If the vpc_id is provided, this value can be left blank."
21
+
}
22
+
23
+
# 输入可用区,当为已有ECS实例绑定弹性网卡时,该值必填,且值为ECS实例所在可用区。
24
+
variable"zone_id" {
25
+
default=""
26
+
description="When binding an ENI to an existing ECS instance, this value is required and must be the zone where the ECS instance is located."
27
+
}
28
+
29
+
# 指定VSwitch的CIDR块,CIDR块需在VPC CIDR块的范围内
30
+
variable"vswitch_cidr_block" {
31
+
default="192.168.0.0/24"
32
+
description="Specify the CIDR block of the VSwitch. The CIDR block must be within the range of the VPC CIDR block."
33
+
}
34
+
35
+
# 访问弹性网卡的源地址
36
+
variable"source_ip" {
37
+
description="The IP address you used to access the ENI."
38
+
type=string
39
+
default="0.0.0.0/0"
40
+
}
41
+
42
+
# 指定弹性网卡的私网IP地址
43
+
variable"private_ip" {
44
+
description="The primary private IP address of the ENI. The specified IP address must be available within the CIDR block of the VSwitch. If this parameter is not specified, an available IP address is assigned from the VSwitch CIDR block at random."
0 commit comments