I am trying Terraform as Docker. I have pulled the image from:
I have simple main.tf:
output "greetings" { value = "Hello World!" }
provider "random" {}
Now, in the same dir as main.tf I run:
docker run -i -t hashicorp/terraform:light plan main.tf
as it is suggested on that page. But I get the error:
stat main.tf: no such file or directory
So I guess that I need to create a Dockerfile to create an image including the main.tf, right?
thanks.