eric-keller / npp-cloud

7 stars 9 forks source link

Update main.tf with startup-script fix #1

Closed nchen closed 4 days ago

nchen commented 3 months ago

Fix the startup-script of the VM so that the netcat command can be installed as expected.

When I was doing the lab assignment, without the "-y" option the netcat command was not installed. So I ssh into the VM and manually install it again, I found that apt command stopped execution with a confirmation message saying something like - "Installing this command will spend xxx MB disk space, do you want to continue?", which could be the reason preventing it to be installed automatically.

Later I added the "-y" and tested it with terraform again, this time it was installed successfully.