hi
In Lab : Terraform providers Q 10 there is hint starting the answer file is as
nfo_outline Hint
Answer File: /var/answers/answer10.tf
But when I do the working and try to locate this answer file I am not able to locate it
iac-server $ pwd
/root/terraform-projects/christmas-wishlist
iac-server $
iac-server $
iac-server $ ls -al
total 20
drwxr-xr-x 2 root root 4096 Mar 15 16:02 .
drwxr-xr-x 7 root root 4096 Mar 15 15:37 ..
-rw-r--r-- 1 root root 140 Mar 15 15:37 cyberpunk.tf
-rw-r--r-- 1 root root 91 Mar 15 15:37 ps5.tf
-rw-r--r-- 1 root root 110 Mar 15 16:02 xbox.tf
iac-server $
iac-server $ cat xbox.tf
resource "local_file" "xbox" {
filename = /root/xbox.txt
content = "Wouldn't mind an XBox either!"
}
iac-server $
iac-server $
iac-server $ cat /var/answers/answwer10.tf
cat: /var/answers/answwer10.tf: No such file or directory
iac-server $
iac-server $ cat /var/answers/answer10.tf
cat: /var/answers/answer10.tf: No such file or directory
iac-server $
iac-server $
iac-server $ cd /var/answers/
iac-server $ ls -al
total 12
drwxr-xr-x 2 root root 4096 Mar 15 15:37 .
drwxr-xr-x 1 root root 4096 Mar 15 15:37 ..
iac-server $
iac-server $ pwd
/var/answers
iac-server $ date
Mon Mar 15 16:03:07 UTC 2021
iac-server $
iac-server $ ls -al
total 12
drwxr-xr-x 2 root root 4096 Mar 15 15:37 .
drwxr-xr-x 1 root root 4096 Mar 15 15:37 ..
iac-server $