Skip to content

Launch your first machine

This page takes you from nothing to a shell on a machine that stops itself when nobody is using it.

Install the CLI and sign in. If you have not done that yet, get started with the CLI first.

Machines are created in your account, not ours. Deployport assumes a role you write, and you can revoke that role whenever you like.

Terminal window
deployport machinery cloud connect aws

The command prints the role to create in your own account. Paste it there, copy the role ARN your cloud console gives back, and finish the connection with it:

Terminal window
deployport machinery cloud connect aws --role-arn <the role ARN>

For Google Cloud the provider is gcp and the connection finishes with --project <project id>. Connect a cloud account has the whole flow.

A factory is what a machine is built from. It carries the cloud account, the sizes it permits, the firewall rules and the setup steps.

Terminal window
deployport machinery machine-factories create --title "Dev" --cloud-account <cloud-account-id>
Terminal window
deployport machinery machines create --factory <factory-name>

The command prints the machine id. Add --name to give it a name you will recognize in a list.

Terminal window
deployport machinery ssh <machine-id>

A stopped machine starts when you connect, so you do not have to check whether it is running first.

Terminal window
deployport machinery machines list

A machine stops itself when it has been idle, and the bill stops with it. It warns you first, so you get a chance to keep it running:

Terminal window
deployport machinery machines autostop suppress <machine-id> 4h

An ssh session counts as use, so a machine you are working on is never stopped under you. Let a machine stop itself explains the timings.

A stop keeps the disk and the next start brings the machine back:

Terminal window
deployport machinery machines stop <machine-id>
deployport machinery machines start <machine-id>

A terminate destroys the cloud instance. Nothing brings it back:

Terminal window
deployport machinery machines terminate <machine-id>