Skip to content

Latest commit

 

History

History

pulumi_via_jupyter

Pulumi Via Jupyter

This project explores running Pulumi through a Jupyter Notebook.

Demo

demo

Notebooks

This example contains two notebooks:

  1. automation_api.ipynb: (est. runtime 3 minutes) A simple overview of Automation API that demonstrates doing a basic deployment of a static website from within a Jupyter notebook.
  2. database_migration.ipynb: (est. runtime 15 minutes) Set up data science infrastructure from your notebook. We create an AWS RDS SQL database, configure the schema, and load data.

Requirements

To run this example you'll need a few pre-reqs:

  1. A Pulumi CLI installation (v3.0.0 or later)
  2. The AWS CLI, with appropriate credentials.

Set up your virtual environment

  1. $ python3 -m venv venv
  2. $ venv/bin/python3 -m pip install --upgrade pip
  3. $ venv/bin/pip install -r requirements.txt

Running a notebook

  1. Start up the notebook server. This will open up the directory in your default browser.
    $ venv/bin/jupyter notebook
  2. Click on a notebook (.ipynb file) to open it up.
  3. Work through the notebook by running each cell in order. You can run a cell with Shift + Enter or by using the Play button at the top of the notebook.