Rename a Resource Without Replacing It
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/relay, the resource random_pet.name generates the public name of a running server. The team wants it called random_pet.server_name. A naïve rename would destroy the old name and generate a new one, breaking every link.
random_pet.server_name (nothing is called random_pet.name any more).random_pet.server_name with the same value as before./home/student/out/hostname.txt keeps the same content.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.