Which Mac Editor To Use For Terraform

You can find the SHA256 checksums for Terraform 0.11.10 online and you can verify the checksums signature file which has been signed using HashiCorp's GPG key.

Active1 year ago
  • Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications. Download Visual Studio Code - Mac, Linux, Windows This site uses cookies for analytics, personalized content and ads.
  • Terraform enables you to safely and predictably create, change, and improve infrastructure. It is an open source tool that codifies APIs into declarative configuration files that can be shared amongst.

I am currently using virt-install to create new VMs on KVM/QEMU and then using Terraform to configure software on them. I want to combine these steps and use a Terraform provider to automate VM creation but then be able to tear the whole system down with a single command. Can anyone suggest a suitable Terraform provider to achieve this?

I am currently using matchbox with dnsmasq to PXE boot my VMs so all my solution needs to do is create a VM using Terraform with the necessary flags, for example:

and be able to simply run terraform destroy to undo everything

dippynarkdippynark

2 Answers

Terraform

The best KVM provider I've found so far is terraform-provider-libvirt. It provides full support for managing KVM VMs from Terraform and it still under very active development.

The only minor downside is that binaries are currently only available for openSUSE - other platforms require you to compile from source (like Terraform it's written in Go).

mjturnermjturner

There are now packages for CentOS, Fedora and Ubuntu as well:

Which Mac Editor To Use For Terra Form Power

tcassaerttcassaert

Not the answer you're looking for? Browse other questions tagged linuxconfiguration-management or ask your own question.

Active1 year, 5 months ago

So I tried to spin up an EC2 instance using Terraform on my Mac (which is running Sierra and Terraform 0.11.5) but keep getting a few errors:

Command: terraform plan

Error: Error parsing /Users/*****/terraform/aws.tf: At 1:11: illegal char

Command: terraform show

Error: Failed to load backend: Error loading backend config: Error parsing /Users/******/terraform/aws.tf: At 1:11: illegal char

Terraform

Here is what my file looks like:

I put * in place of the real information used in the file in case anyone was wondering. Any help would be greatly appreciated!! Thank you in advance!

underscore_d
3,4093 gold badges21 silver badges49 bronze badges
Nick HopkinsNick Hopkins

1 Answer

To answer the question but also provide feedback on how to ensure your format is correct.

As mentioned in the comment the example is missing a closing curly brace

Terraform has a validate command that will check for these formatting issues. If you run on the example above you will see

StephenStephen
2,5511 gold badge16 silver badges25 bronze badges
Terraform download

Terraform Vsts

Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged amazon-ec2terraform or ask your own question.