Hands-on task
Terraform: three files via count
In /root/tf describe a local_file resource with count = 3 that creates the files /opt/gen/file-0.txt, /opt/gen/file-1.txt, /opt/gen/file-2.txt (the index comes from count.index). Run apply. There's no internet in the sandbox: only the hashicorp/local provider is available (it sits in a local mirror, terraform init will find it on its own). Write the config in the Editor tab (the /root/tf directory is already created) and run terraform in the terminal.
- terraform
- count
- count.index
- interpolation
- local_file