:thread: best scenario for automation api, does i...
# automation-api
c
🧵 best scenario for automation api, does it fit for me?
About to build out a Pulumi project it will manage azure devops repos , policies for review, and hopefully bootstrap with some files. • I use Mage with go for task automation. • I will have PRs for review of changes (using azure devops repos) cool crying (dig the github one but sadly can’t do it) • Rather than wrapping cli which I’ve done would it better to use automation api directly in my mage tasks? • Would it work fine if I have to azure blob storage as the backend for state. Assuming yes but just making sure the automation api isn’t tied directly Pulumi cloud. • I want to manage a few files in each of the repos from my project that will register ci pipelines, linting tools and more. I recall git file management for syncing was possible but can you confirm with a link if there’s any examples of doing this with Go?) Cheers!
w
Tackling these piecewise: • Automation API isn't tied to Pulumi Cloud; you can use Azure Blob Storage here!
Magefiles! I haven't seen those in the wild before! Very cool! Here's a case study which you might find compelling. https://www.pulumi.com/blog/how-elkjop-nordic-enables-developers-to-self-serve-infrastructure/ It sounds very similar to what you're working on!
I want to manage a few files in each of the repos from my project that will register ci pipelines, linting tools and more. I recall git file management for syncing was possible but can you confirm with a link if there’s any examples of doing this with Go?)
I'm afraid I know nothing about this. 😞 I've seen it down with GitHub Templates but not for Azure DevOps Repos.
• Rather than wrapping cli which I’ve done would it better to use automation api directly in my mage tasks?
Yeah, I'd reach for AutoAPI here myself. Note that technically AutoAPI wraps the CLI too! But why not let us wrap the CLI on your behalf? 🙂
c
Thank you! The managing a few files thing…. There’s a git api for this I think. I recall that’s what I was looking at. Need to go find it. Might avoid but since Pulumi managing figured I’d like. It’s to maintain those not just bootstrap them.
w
Hm, I don't see a
git
provider in the Pulumi registry, but you can always use the
Command
provider to shell out to system git. It's possible there's an API for this on Azure DevOps repos though.