I made a previous video showing how to deploy a Virtual Machine on GCP and install Docker and Docker Compose with Terraform using a startup script. While this will work it is not the cleanest way to accomplish it. This video will show how using user-data will execute the code on creation and will not run the code on subsequent reboots.
Thank you to
Dmitro Aleksandrov
and
Joseph Machado - https://www.startdataengineering.com/
for pointing this out.
Previous Video:
• Creating a VM on GCP with Docker and ...
Github Repo:
https://github.com/MichaelShoemaker/D...