This repository contains standalone examples and demonstrations for defining and creating resources with Pulumi using Python. To minimise setup, the Pulumi projects operate fully locally.
To run any demo, first locally install the dependencies with Poetry. For example, if you want to use a Poetry virtual environment,
poetry env use python && poetry install
Then, to run a specific demo, navigate examples/<demo-name>
, run
poetry run pulumi up
and follow the instructions to create a new stack locally. The new stack can be found in .backend
.
The repository contains the following examples:
Demonstrates the concept of dynamic resource providers by defining a resource provider that creates, reads, updates and deletes local files. See also pulumi.com/blog/dynamic-providers.
Demonstrates the concept of Pulumi outputs by showing in what circumstances a Pulumi output can be converted and printed as a string. See also pulumi.com/docs/inputs-outputs/.