Leveraging Terraform to automatically set up the attacker VM instance
The previous section primarily focused on setting up the attacker VM instance using pre-built scripts. This was necessary because we will utilize this VM instance (kali-00
) as a reference to create a golden image. This golden image will be used in the Terraform configuration file to automatically set up the attacker VM instance (vm-kali
).
Note
What will happen to the original VM instance (kali-00
) we created? After using it to create the golden image, it becomes generalized and cannot be started again. That said, once the golden image has been successfully created, we will delete the original VM instance (kali-00
).
This section is divided into the following subparts:
- Part 1 of 3 – Creating the golden image
- Part 2 of 3 – Deleting the manually created resources
- Part 3 of 3 – Preparing the Terraform configuration files
Without further ado, let’s begin!