- Info
- OAuth Token
- Default workstation username -
ubuntu
-
Create
secrets.env -
Copy
secrets.env.examplecontents tosecrets.env -
Fill
secrets.envwith credentials -
Update variables in locals inside
workstation/main.tfif needed. Use commands below to check your changes.$ terraform fmt $ terraform validate
-
Build docker container
$ docker-compose build -
Run docker container
$ make dc_run -
Create SSH keys for root user at workstation which will be created
$ make generate_ssh -
Create workstation in Yandex cloud
$ cd workstation/ $ terraform init $ terraform apply -
Confirm changes shown in plan
Your ssh key will be stored in terraform.tfstate and terraform.tfstate.backup files as plain text
-
To get workstation info use:
$ make dc_vm_info -
To get workstation IP address use:
$ make dc_vm_ip -
To start workstation use:
$ make dc_vm_start -
To stop workstation use:
$ make dc_vm_stop -
To connect by ssh use:
$ eval $(make dc_ssh_vm)
-
If you don't run container with
make dc_runsetupyandex CLIwith$ make yc_init -
To get workstation info use:
$ make vm_info -
To get workstation IP address use:
$ make vm_ip -
To start workstation use:
$ make vm_start -
To stop workstation use:
$ make vm_stop -
To connect by ssh use:
$ eval $(make ssh_vm)