Protect a Resource from Deletion
This machine has OpenTofu, the open-source tool that reads the same configuration language as Terraform. Run it as tofu (terraform runs the same program). There is no network: the local, random and null providers are already installed.
In /home/student/infra/courier, random_password.master is the master key of a production database: if it is ever destroyed, the data is lost. The null_resource.registration records an owner that the database team changes in their own system, and it should not be put back by every apply.
random_password.master fail with an error.owner in the code must not cause null_resource.registration to be replaced or updated.About this machine
Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.
Your machine is ready to start
Create a free account to open a machine and get graded.