devops-exercises/topics/terraform/exercises/terraform_local_provider/exercise.md
abregman 99c4e02ecf Rename exercises dir
Name it instead "topics" so it won't be
strange if some topics included "exercises" directory.
2022-08-02 01:53:56 +03:00

572 B

Local Provider

Objectives

Learn how to use and run Terraform basic commands

  1. Create a directory called "my_first_run"
  2. Inside the directory create a file called "main.tf" with the following content
resource "local_file" "mario_local_file" {
    content  = "It's a me, Mario!"
    filename = "/tmp/who_is_it.txt"
}
  1. Run terraform init. What did it do?
  2. Run terraform plan. What Terraform is going to perform?
  3. Finally, run 'terraform apply' and verify the file was created

Solution

Click here to view the solution