You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This application represents a starting point for how you might develop a self-service infrastructure platform on top of Pulumi's Automation API.
In this case, we've used Python, Flask and Jinja templates to create a web portal that allows users to deploy their own infrastructure.
One resource that we expose are static websites, which you can deploy either by passing in a URL to an HTML file or by manually typing out the content. We've exposed all of the CRUD operations, so you can update and delete your websites as well.
This idea is just a starting point for how you might build out your own infrastructure platform. The static website resource is fully developed, but databases, virtual machines and VPCs are not yet coded to completion.
Alternatively, you could expose this functionality as a REST API, allowing deployments via CLI in addition to a web interface.
Pulumi's Automation API allows you to abstract away all of the "cloud stuff" that your users might not care to know, and bring them just the details they need, at the click of a button. The possibilities are endless!
WARNING: This is just a demo! I have not followed any security best-practices, so please don't deploy this thing to production.
In a terminal window, run the HTTP server that uses Automation API. It will also stream update logs:
$ FLASK_RUN_PORT=1337 FLASK_ENV=development FLASK_APP=app PULUMI_ORG=[your-org-name] venv/bin/flask run
* Serving Flask app "app" (lazy loading)
* Environment: development
* Debug mode: on
* Running on https://127.0.0.1:1337/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!* Debugger PIN: 150-956-496
Then, in your browser, navigate to localhost:1337 and you should see a page matching the image below. Click around and start exploring!
About
Build your own IaC platform with Pulumi's Automation API.