I wonder if there is a way to backup or export the Firewall rules, VPN settings and network settings in google cloud to be imported back in a later date/new account/after failed change/etc.

I can export firewall rules to a text using gcloud compute firewall-rules list and then add gcloud compute firewall-rules create to each rule somehow but I'm trying to find some easier solution.

Also it looks like there is no way of creating firewall rules after exporting them to yaml format using this command: gcloud compute firewall-rules list --format=yaml

1 Answer 1


At the moment, there isn't any direct command or GUI option available in the GCP platform. However, there is an on going similar "Feature Request" in Google Cloud platform.

You can check this link on this matter, as any new updates will be posted there. You can also make any suggestions/corrections by commenting that link as well.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .