Referencing Terraform files from PSU

Product: PowerShell Universal
Version: 4.3.2

I want to use Terraform to build VMs and I think a PSU App would be a great GUI frontend for that. I’m thinking use a PSU App to call a script to do the work. Terraform wants it’s config files (main.tf, variables.tf, etc) in the current directory when you call it. I’d rather not copy the files into the root Scripts directory as that can get messy. I’d rather not put the files elsewhere in the disk so I can keep everything in one Git repo. What are my options? Can I create a subfolder under Scripts and cd to that?

Here’s how I’ve solved it. I zipped the Terraform files. In my build script, I cd into a temp location, unzip the files and do the work.

You can change the default/base scripts path, which is what I do so my PSU scripts reside in:

Repository\scripts...

And you could just created a new folder for your terraform files here:

Repository\terraform

That way the folders etc won’t show up in the scripts UI within psu.

Is that what you meant?

1 Like

@insomniacc That’s pretty much what I was looking for, thanks.