2022-07-21 23:18:48 +02:00
|
|
|
# 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
|
|
|
|
|
|
|
|
```terraform
|
|
|
|
resource "local_file" "mario_local_file" {
|
|
|
|
content = "It's a me, Mario!"
|
|
|
|
filename = "/tmp/who_is_it.txt"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
3. Run `terraform init`. What did it do?
|
|
|
|
4. Run `terraform plan`. What Terraform is going to perform?
|
2022-09-07 16:36:08 +02:00
|
|
|
5. Finally, run `terraform apply` and verify the file was created
|
2022-07-21 23:18:48 +02:00
|
|
|
|
|
|
|
## Solution
|
|
|
|
|
2022-09-07 16:36:08 +02:00
|
|
|
Click [here to view the solution](solution.md)
|