Resource Import questions

We have a local file resource with certain content. Once this resource is provisioned, the file is created in the /root directory and the information about this file is also stored in the Terraform state file. Now let’s create a new file using a simple shell script in the same directory /root . Quite evidently, this file is outside the control and management of Terraform at this point in time. How would you include the second file in your Terraform configuration?

In Mock test right answer is showing “By creating data type object inside main.tf”
But I think it should be “By creating resource type object inside main.tf”.

Please clarify more.

Hi @engr.ashraf.khan , can you share the link for this task, please?

Regards,
Vitor Jr.
KodeKloud Support

You will find in mock test of terraform associate training.