1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-26 03:10:00 -05:00
vsphere-automation-sdk-python/samples/vmc/vm-request-o-matic
Matt Dreyer 157b3897f1 Initial version of vm-request-o-matic
This is a simple sample application that includes a web form that creates a VM in a VMware Cloud on AWS SDDC.
2018-03-01 15:44:53 -08:00
..
demo.mp4 Initial version of vm-request-o-matic 2018-03-01 15:44:53 -08:00
index.html Initial version of vm-request-o-matic 2018-03-01 15:44:53 -08:00
readme.md Initial version of vm-request-o-matic 2018-03-01 15:44:53 -08:00
vm-request-o-matic - Clean.py Initial version of vm-request-o-matic 2018-03-01 15:44:53 -08:00
vmc-sticker.png Initial version of vm-request-o-matic 2018-03-01 15:44:53 -08:00

This is a simple 'serverless application' that allows you to create a VM in an SDDC on VMware Cloud on AWS using a few cool tools including: Lambda, Cognito, S3, and VMware Cloud on AWS.

Matt Dreyer August 16, 2017

To make this work you need to do the following:

  1. Make sure that the vCenter in your SDDC is open to the world, or painfully configure Lambda to run in an VPC and NAT to a specific IP address (which requires even more IAM roles for VPC access).
  2. Create a working VM, and then Clone it to an OVF template in Content Library
  3. Use the vCenter API browser to discover the UUID of the your OVF template
  4. Update the HTML in index.html to match the UUID(s) of the VMs you wish to deploy
  5. Create a new Lambda function and upload vm-request-form.zip as your code
  6. Create a new Cognito "Federated Identity" for "anonymous access"
  7. Update the javascript in index.html to match your new Cognito role
  8. Create an S3 bucket and configure it for Webhosting
  9. Upload index.html and vmc-sticker.png into your bucket
  10. Muck with IAM until Lambda and Cognito get along together (required Cognito role permissions are AWSLambdaExecute and AWSLambdaRole)