Looking to create a Terraform "disposable" deployable DFIR lab set up to save on buying local hardware for play.
This will create two hosts:
- a SIFT workstation, and
- a Windows Server 2016 host
In an effort to make sure no one accidently hardcodes their IPs or Hostnames into their project. I have Terraform pull hostnames in through a list before deploying. The user will need to create their own secrets.tfvars
file to feed into the script, via:
terraform apply -var-file="secrets.tfvars"
And the contents of the file should have any number of source addresses you wish to have access to your micro lab.
secrets.tfvars:
my_private_local_fqdns = ["my.network.net", "my.otherplace.com"]
If you already have a domain, you can use Cloudflare as a free Dynamic DNS host. (If not, go buy one with Cloudflare, and pick a cheap TLD if need be.)
There are lots of ddns clients out there to help, and pfSense/OPNsense both have packages for this as well. So if you're building this at home off of an IP address that changes, set Cloudflare up, and then as your DDNS host A record to the my_private_local_fqdns
variable.
This will just set up the two hosts with a basic Security Group assignment and IGW for you to get started. Each host will still need a little massaging to get comfortable. As I figure that out, I'll update here.