O'Reilly logo

Mobile DevOps by Jhalak Modi, Rohin Tak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuration files

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required