Can I use pulumi deployments automation to up/down...
# automation-api
d
Can I use pulumi deployments automation to up/down stacks sourced from a repo in something other than GitHub? in my case Az DevOps. Thanks!
r
Hi! You can use the generic git source which will allow you all the functionality except push-to-deploy.
So you will still be able to click to deploy in the UI or use the API to create deployments.
d
Oh! Have you got a link to an example please?
not of the UI, just of the generic git side of the pulumi deployments part.
r
There are multiple ways to set deployment settings. Here's an example using the API: https://www.pulumi.com/docs/pulumi-cloud/deployments/reference/#from-the-api Here's one using the pulumiservice provider: https://www.pulumi.com/docs/pulumi-cloud/deployments/reference/#defined-as-code-with-the-pulumi-service-provider Some examples of what your payload should look like if you're using generic git auth: https://www.pulumi.com/docs/pulumi-cloud/deployments/api/#examples
You can also set all of these settings in the UI by choosing 'Git' instead of 'GitHub' as the source control option
d
thank you - that’s plenty to go on, I appreciate your help!