VK Cloud logo

ivkcs_ssh_keypair resource

The argument of the ivkcs_ssh_keypair resource is given in table 1.

Table 1 — The ivkcs_ssh_keypair resource argument

Name

Description

Format

Required

Default value

Resource recreation when the value is changed

bit_size

The size of the private and public SSH keys.

integer

ivkcs_ssh_keypair resource

2048

ivkcs_ssh_keypair resource

The ivkcs_ssh_keypair resource returns the attributes given in table 2.

Table 2 — The ivkcs_ssh_keypair resource attributes

Name

Description

public_key

The public SSH key in the RSA format. Used in the ssh_authorized_keys argument of the ivkcs_user_data resource resource

private_key

The private SSH key in the RSA format used to establish connections to VMs

Example of the `ivkcs_ssh_keypair` resource
resource "ivkcs_ssh_keypair" "key" {  bit_size = 3072}
Was this article helpful?