Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.
Terraform
Terraform
On this page
Binding an EIP
Updated on 2023-12-21 GMT+08:00
Application Scenario
Purchase an EIP and bind it to the ECS.
Related Resources
Procedure
- Add the following information to the main.tf file:
resource "huaweicloud_vpc_eip" "myeip" { publicip { type = "5_bgp" } bandwidth { name = "mybandwidth" size = 8 share_type = "PER" charge_mode = "traffic" } } resource "huaweicloud_compute_eip_associate" "associated" { public_ip = huaweicloud_vpc_eip.myeip.address instance_id = huaweicloud_compute_instance.myinstance.id }
- Run terraform plan to view resources.
- After you confirm that the resource information is correct, run terraform apply to purchase the EIP and bind the EIP to the ECS.
Parent topic: Elastic Cloud Server (ECS)
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.