Hello community! How can I add an existing gcp fi...
# general
p
Hello community! How can I add an existing gcp firewall policy to a vm whilst creating one in pulumi ? Couldn't find any relevant doc/example. Thanks
b
Firewalls are attached to networks and VMs are created in a network. So they get the firewall of the network into which they are created. https://www.pulumi.com/registry/packages/gcp/api-docs/compute/firewall/
p
Can I not create and put firewall policies at vm level ?
b
Nope. Not how GCP works. https://cloud.google.com/compute/docs/reference/rest/v1/instances . Firewalls come with the network.
p
ok thanks for the references !