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

boundless-insurance-52858

10/19/2020, 6:08 PM
I’d really like to build a POC around our current infrastructure to provision everything we need for a new customer. However we currently have all of our state files in Azure storage. Having access to these backends would be A+ for my use case.
b

billowy-army-68599

10/19/2020, 6:11 PM
cc @limited-scientist-64886
l

lemon-agent-27707

10/19/2020, 6:11 PM
This is already supported.
@clever-byte-21551 has been using automation API + Go + OSS backends
b

billowy-army-68599

10/19/2020, 6:12 PM
do you have an example?
l

lemon-agent-27707

10/19/2020, 6:15 PM
Automation API uses whatever backend the CLI is currently logged into. This example shows using custom secrets providers: https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v2/go/x/auto#example-LocalWorkspace-SecretsProvider
If you need to switch between multiple backends in the same program, that currently isn't supported. I added an issue here: https://github.com/pulumi/pulumi/issues/5591 Perhaps you can fill in some more details. I'd be happy to take a look at enabling this.
(Or would welcome contributions 😃)
b

boundless-insurance-52858

10/19/2020, 7:10 PM
Nice, thx! I’ll have a look at it.
c

clever-byte-21551

10/19/2020, 7:27 PM
@boundless-insurance-52858 I currently use a single backend (s3 backend) for all of my stacks. However, the encryption key for each stack state is different