I would like you to implement a small service in Python3 that can be used to repeatedly spawn a Google Cloud instances and then configures it with a given username/password, then responds with the newly created instance’s IP address.
1. Create a small Python 3 service that accepts HTTP requests with the following endpoints:
a. GET /healthcheck: Implements a basic health check, returning HTTP status code 200 and a blank page.
b. POST /v1/instances/create: Receives a username and password of your choice as query parameters (ignore security, it’s just a basic exercise) and responds with an IP address.
2. This endpoint creates a small cloud instance of a configurable type, configures a user with the given username and password of your choice, ensures password authentication is working, and ensures the user can be used to log in as root.
3. The response is sent back to the client as soon as the server is ready, so the client must expect to wait for a few seconds or minutes until the instance becomes healthy/ available.
2. Document your progress and results in a Word or PDF file, including code documentation and a standard README containing clear steps and instructions.
February 21, 2018
I am looking for a mix of experience and value