Argument Intergration with Terraform
Arguments transfer from Terraform
Example Usage
Arguments Reference
1
project_id
REQUIRED
STRING
ID of the Project.
pro-462803f3-6858-466f-bf05-df2b33faa360
2
name
REQUIRED
STRING
Name of Server.
example-server-name
3
encryption_volume
REQUIRED
BOOLEAN
Is Server use encryption volume?
False
4
flavor_id
REQUIRED
STRING
ID of the Flavor.
flav-e2028a81-cc75-47e4-8af1-9eef2f857f84
5
image_id
REQUIRED
STRING
ID of the Image.
img-b5bf635e-0456-4765-b493-31d5fcfc05aa
6
network_id
REQUIRED
STRING
ID of Network.
net-961d6867-b65a-40ac-879e-d84e4dc768e0
7
root_disk_size
REQUIRED
NUMBER
Size of boot volume.
20
8
root_disk_type_id
REQUIRED
STRING
ID of boot volume type.
vtype-61c3fc5b-f4e9-45b4-8957-8aa7b6029018
9
ssh_key
OPTIONAL
STRING
ID of SSH key.
ssh-7bd70c56-1f05-4989-a0f0-cc3496b62001
10
security_group
OPTIONAL
STRING
ID of Security Group.
secg-3b12a078-b862-43b5-a56b-d7fc4429e535
11
subnet_id
REQUIRED
STRING
ID of the subnet.
sub-c1ebba8f-baa8-434c-beb7-2916199bb812
12
host_group_id
OPTIONAL
STRING
ID of Host Group.
/
13
action
OPTIONAL
STRING
Action with Server. It can be: stop, start; reboot.
start
14
attach_floating
OPTIONAL
BOOLEAN
Is Server attach a floating IP?
True
15
expire_password
OPTIONAL
BOOLEAN
Skip change password: false, else: true.
False
16
os_licence
OPTIONAL
BOOLEAN
License of OS.
True
17
root_disk_encryption_type
OPTIONAL
STRING
Type encryption of boot volume.
/
18
source_type
OPTIONAL
STRING
Type of Source.
/
19
user_name
OPTIONAL
STRING
Name of User.
usernamestackops
20
user_password
OPTIONAL
STRING
Password of User.
VngGCloud3030
21
server_group
OPTIONAL
STRING
ID của Server Group.
/
22
user_data
OPTIONAL
STRING
User_data to provide when launching the server.
${data.template_cloudinit_config.user_data.rendered}
23
user_data_base64_encode
OPTIONAL
BOOLEAN
Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string.
True
24
is_poc
OPTIONAL
BOOLEAN
using POC wallet
True
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