eric-keller / npp-cloud

7 stars 8 forks source link

Static project ID in the `google_compute_firewall` resource leads to errors #2

Open dmaclaury opened 3 months ago

dmaclaury commented 3 months ago

The static project value on https://github.com/eric-keller/npp-cloud/blob/305d36b692301e57bb0c0f83baffb8a9e00e1345/tf-mod2-demo1/main.tf#L39 leads to errors due to not having access to your project from the lecture.

This static reference can be removed from the google_compute_firewall resource and it will be created in the project defined in the provider config.

joshpwn commented 2 months ago

I also encountered this. I also manually deleted the line which solved the issue. (I'm not sure if this was on purpose by the professor to test us; delete the issue and comments if so.)

eric-keller commented 3 weeks ago

I'm commenting on this pretty late, but it wasn't intentional to test you. It was simply a mistake to leave it in. Thanks for noting a solution.