(unused_context)
return {'resources': resources}
Creates the Compute Engine with multiple templates.
Creates the Compute Engine with multiple templates.
Creates the Compute Engine with multiple templates .
def GenerateConfig(unused_context):
  """Creates the Compute Engine with multiple templates."""

  resources = [{
      'name': 'the-first-vm',
      'type': 'vm-template.py',
      'properties': {
          'machineType': 'f1-micro',
          'zone': 'us-central1-f',
          'network': NETWORK_NAME
      }
  }, {
      'name': 'the-second-vm',
      'type': 'vm-template.py',
      'properties': {
          'machineType': 'f1-micro',
          'zone': 'us-central1-f',
          'network': NETWORK_NAME
      }
  }, {
      'name': NETWORK_NAME,
      'type': 'network-template.py'
  }, {
      'name': NETWORK_NAME + '-firewall',
      'type': 'firewall-template.py',
      'properties': {
          'network': NETWORK_NAME
      }
  }]
  return {'resources': resources}
def GenerateConfig ( unused_context ) : resources = [ { 'name' : 'the-first-vm' , 'type' : 'vm-template.py' , 'properties' : { 'machineType' : 'f1-micro' , 'zone' : 'us-central1-f' , 'network' : NETWORK_NAME } } , { 'name' : 'the-second-vm' , 'type' : 'vm-template.py' , 'properties' : { 'machineType' : 'f1-micro' , 'zone' : 'us-central1-f' , 'network' : NETWORK_NAME } } , { 'name' : NETWORK_NAME , 'type' : 'network-template.py' } , { 'name' : NETWORK_NAME + '-firewall' , 'type' : 'firewall-template.py' , 'properties' : { 'network' : NETWORK_NAME } } ] return { 'resources' : resources }