https://pulumi.com logo
#automation-api
Title
# automation-api
c

crooked-pillow-11944

02/06/2022, 9:47 PM
I'd like to include the pulumi code for provisioning inside of a Python module and using the automation API from a
Click
command bring the stack up. Is there an example of using pulumi like this?
q

quiet-wolf-18467

02/06/2022, 10:23 PM
c

crooked-pillow-11944

02/06/2022, 11:50 PM
That wasn't super helpful because it was running inline vs in a module I ended up creating a Python module and put it here: https://github.com/kjenney/prov All it does now is create a single S3 bucket but it could provision anything using the
pulumi_program
function
q

quiet-wolf-18467

02/07/2022, 8:06 AM
There's no real difference between an inline function and a module: https://github.com/pulumi/automation-api-examples/tree/main/python/local_program
l

lemon-agent-27707

02/08/2022, 3:39 AM
This might be of interest to you. A django app with a front end that kicks of automation api deployments: https://github.com/komalali/self-service-platyform
c

crooked-pillow-11944

02/08/2022, 9:43 AM
That is very interesting - kinda the intent of the automation api. Thanks @lemon-agent-27707
4 Views