Creating a Reproducible Remote Desktop with Terraform

Conclusion

This article showed how to use Terraform to create an initial setup for a reproducible remote server. Notice how your infrastructure is now managed not manually (apart from images), but through several Terraform commands.

Possible extensions of this concept include:

  • Setting up a mini server that runs terraform apply on schedule, so that it will automatically create your virtual office at a given time and then destroy it
  • Putting your commands in a makefile
  • Automating your server setup via Ansible

Hopefully, this base will be a good start for your future experiments.

The Author

Sergei Iugai is a software developer living in Finland. He is very keen about systems administration, and he likes to look for ways to achieve a better work-life balance through automation.

Buy this article as PDF

Download Article PDF now with Express Checkout
Price $2.95
(incl. VAT)

Buy Linux Magazine

Related content

  • Appointment Scheduler

    If you have a business that requires customers to make an appointment in advance for services, letting them request the appointment via Easy!Appointments can free up your phone line.

  • Sky Server

    Are you ready to get started with the cloud? Microsoft's Azure Cloud Services provides easy access to an Ubuntu virtual machine.

  • News

    In the news: System76 Developing a New Desktop Environment; Hetzner Opens New Location in the USA; KDE Plasma 5.24 Introduces Fingerprint Reader Support; Ubuntu 21.10 Released and Finally Includes Gnome 40; Hive Ransomware Hitting Linux and FreeBSD Systems; and SUSE Reaches Beyond the Edge with SUSE Linux Enterprise Micro 5.1.

  • Honeypots

    Use Cowrie as a honeypot to capture attack data and learn more about your attacker's methods.

  • PiVPN

    With PiVPN, a system administrator can build a small private network and let end users attach to it themselves – and use it for running games.

comments powered by Disqus