- Info
- OAuth Token
- Default remote username -
ubuntu
-
Copy
.env.example
to.env
and fill or change variables -
Copy
secrets.env.example
tosecrets.env
and fill or change variables -
Copy
remote/terraform.tfvars.example
toremote/terraform.tfvars
and fill or change variables
- Setup
dns/domain
variable inremote/terraform.tfvars
Use this command to find os_image_id for your needs
yc compute image list --folder-id standard-images
-
Copy
yc-remote-dev/remote/dns_records/cname_records.json.example
toyc-remote-dev/remote/dns_records/cname_records.json
and fill with required cname records -
Copy
yc-remote-dev/remote/dns_records/txt_records.json.example
toyc-remote-dev/remote/dns_records/txt_records.json
and fill with required txt records
-
Build docker container
$ make build
-
Run docker container
$ make infra
-
Create SSH keys for root user at remote which will be created
$ make generate_ssh
-
Create remote in Yandex cloud
$ cd remote $ t init $ t 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 remote info use:
$ make dc_vm_info
-
To get remote IP address use:
$ make dc_vm_ip
-
To start remote use:
$ make dc_vm_start
-
To stop remote use:
$ make dc_vm_stop
-
To connect by ssh use:
$ eval $(make dc_ssh_vm)
-
If you don't run container with
make infra
setupyandex CLI
with$ make yc_init
-
To get remote info use:
$ make vm_info
-
To get remote IP address use:
$ make vm_ip
-
To start remote use:
$ make vm_start
-
To stop remote use:
$ make vm_stop
-
To connect by ssh use:
$ eval $(make ssh_vm)