0

We are using Deployment Manager API to create VMs in our NodeJS application.

config.deploymentConfiguration.target.config.content = fs.readFileSync(yamlFile,config.encoding);  
var request = {
    project: config.projectId,
    resource: config.deploymentConfiguration
};

Here, I want to dynamically update the yaml properties before calling the create VM code.

deploymentManager.deployments.insert(request, function(err, response){..});

Please suggest the best way to do this.

user2106568
  • 93
  • 1
  • 3
  • 10
  • lease edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. – Linda Lawton - DaImTo Nov 22 '18 at 11:44
  • You might need to check [this](https://cloud.google.com/deployment-manager/docs/reference/latest/deployments/insert#code-sample) help center article as well. More information on updating a 'Deployment' can be found [here](https://cloud.google.com/deployment-manager/docs/deployments/updating-deployments). I hope this helps you – Digil Nov 23 '18 at 01:47

0 Answers0