Creating a Reproducible Remote Desktop with Terraform

Desk Dance

© Photo by Nat Weerawong on Unsplash

© Photo by Nat Weerawong on Unsplash

Article from Issue 303/2026
Author(s):

The Terraform orchestration tool lets you create a remote desktop configuration that you can easily bring up and tear down, which could save you money and add flexibility to your environment.

The concept of a remote desktop has been around for a long time. The idea is to store a regular desktop configuration on some remote server and let the user connect to it using a remote desktop tool like RDP or VNC. One common approach is to set up a physical server with beefy hardware and then provide a connection to it from a thin client. This option has many downsides, such as the possibility of hardware issues or electrical outages.

An alternative approach is to treat your remote desktop the same way you treat cloud resources – that is, building it on demand and using it only when you actually need it. This solution is certainly cheaper than running RDP 24/7. Plus, the fact that the desktop only exists when you need it also reduces the possibility of a cyberattack. An added advantage is that building on demand lets you scale vertically within minutes.

I wanted a remote desktop that could be quickly created and destroyed, but with a state that persisted between the sessions. Some more specific requirements included:

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News