This project explores running Pulumi through a Jupyter Notebook.
This example contains two notebooks:
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.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.
To run this example you'll need a few pre-reqs:
- A Pulumi CLI installation (v3.0.0 or later)
- The AWS CLI, with appropriate credentials.
-
$ python3 -m venv venv
-
$ venv/bin/python3 -m pip install --upgrade pip
-
$ venv/bin/pip install -r requirements.txt
- Start up the notebook server. This will open up the directory in your default browser.
$ venv/bin/jupyter notebook
- Click on a notebook (
.ipynb
file) to open it up. - 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.