Low Orbit Flux Logo 2 F

Terraform Basics - Create Infrastructure with Docker

To startout creating a terraform configuration, you need to create a directory and cd into that directory.



mkdir test1
cd test1

Create a main configuration file like this. You can actually name the file anything. All .tf files are loaded.

main.tf
terraform { required_providers { docker = { source = "kreuzwerker/docker" version = "~