Argument Intergration with Terraform

Arguments transfer from Terraform


Example Usage

resource "vngcloud_vserver_server" "server"{
 project_id = "pro-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
 name = "example-server"
 encryption_volume = false
 flavor_id = "flav-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
 image_id = "img-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
 network_id = "net-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
 root_disk_size = 20
 root_disk_type_id = "vtype-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
 ssh_key = "ssh-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
 security_group = ["secg-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]
 subnet_id = "sub-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Arguments Reference

Note

  • With any changed argument (resize), still tranfering argument is_poc to VNG Cloud.

  • If it does not tranfer is_poc, user going to using credit wallet.

  • If the POC wallet is discontinued and subsequently the server expires, the server does not shut down immediately. Instead, the VNG system has a scheduled job that scans (at 11 AM daily) to consider shutting down expired servers. Therefore, before 11 AM, users can top up credit to continue using the server.

Important

When a resource is expired and status be Terminated, if User would like to renew a resource, User must to implement Renew in User Portal when using Terraform, due to Terraform does not have the ability to renew.

Attributes transfer to Terraform


When VNG Cloud System has recorded all arguments above from Terraform, the following attributes are exported:

  • id STRING : ID of this Server

  • external_interfaces: (List of Map of String) List of Network external interface. It included:

    • external_interfaces STRING;

    • floating_ip STRING;

    • interface_typeSTRING;

    • mac STRING;

    • network_uuid STRING;

    • port_uuid STRING;

    • status STRING;

    • subnet_uuid STRING;

    • type STRING;

  • internal_interfaces: (List of Map of String) List of Network external interface. It included:

    • external_interfaces STRING;

    • floating_ip STRING;

    • interface_type STRING;

    • mac STRING;

    • network_uuid STRING;

    • port_uuid STRING;

    • status STRING;

    • subnet_uuid STRING;

    • type STRING./.

Last updated