Quick start
-
Install Terraform from the official VK Cloud mirror.
-
Open your VK CLoud personal account.
-
Enable two-factor authentication and API access, if not enabled yet.
-
Click on your login at the top of the page, select Project settings from the drop-down menu.
-
Go to the Terraform tab. Download the main Terraform config and the Terraform mirror config files by clicking on the corresponding buttons.
Files named
vkcs_provider.tf
andterraform.rc
will be downloaded. -
Perform the following actions with the files:
WindowsOther OS-
Paste
%APPDATA%
into the address bar of Windows Explorer and copy theterraform.rc
file to the directory that opens. -
Copy the
vkcs_provider.tf
file into the working directory from which you are going to work with the platform.Typically a separate working directory is created for each VK Cloud project.
-
In the directory from which you are going to work with the project, run the command:
terraform init
Supplementary files necessary for working with Terraform will be created.
-
Create a configuration of resources in the working directory — for example, a configuration for creating a virtual machine.
-
Run the command:
terraform apply
Confirm the creation by typing
yes
in the terminal window. -
Wait until the operation is completed.
The created resources will be available in your personal account.