March 2018
Intermediate to advanced
376 pages
7h 25m
English
Now we will see how to create EC2 instances using Terraform.
Create a directory for your configuration file. Terraform will load all the files (*.tf) inside the directory called workspace, so make sure to keep the necessary files inside the directory:
$ mkdir terraform$ cd terraform$ terraform workspace new MyTestMachine$ terraform workspace select MyTestMachine
Terraform uses the *.tf format, known as Terraform configuration.