4

I am looking forward to create a YAML template for an existing VM Instance resource in a GCP project. Is there a way to generate a Jinja Template/YAML file for an existing VM Resource in a GCP Project?

1 Answers1

2

As far as I know, you can obtain the configuration by the GCP UI. You have to enter into the VM Instance details, next scroll down and do click on REST and you will be able to see the configuration as JSON. Then you can convert it into a YAML through this website.

  • Unfortunately it looks like there is no better solution. For example doing this for a simple VPC with a few subnetworks is already painful. – Daniele Cremonini Apr 24 '20 at 16:26