Hi, where can i find examples for automation API w...
# automation-api
a
Hi, where can i find examples for automation API with DIY backends and custom secrets providers? The examples provided on pulumi repos are using pulumi cloud only and the docs are missing information about it
w
https://github.com/ejfine/cloud-courier-infrastructure Uses pulumi automation API to spin up and down ephemeral stacks during CI (or during local development). DIY backend using AWS S3, custom AWS KMS key for encrypting stack secrets https://github.com/ejfine/cloud-courier-infrastructure/blob/main/.github%2Fworkflows%2Fci.yaml#L72
The initial bootstrapping for using Pulumi within the AWS organization is via a small CloudFormation template https://github.com/ejfine/aws-organization/blob/main/pulumi-bootstrap.yaml Setting up other workloads within the AWS Organization to use pulumi is then done with Pulumi https://github.com/ejfine/aws-central-infrastructure/blob/main/src%2Faws_central_infrastructure%2Fiac_management%2Flib%2Fprogram.py
Those two repos were instantiated from Copier template repositories (a tool similar to Cookiecutter): https://github.com/LabAutomationAndScreening/copier-aws-central-infrastructure https://github.com/LabAutomationAndScreening/copier-aws-organization
Some documentation on using those two copier templates together to set up your AWS Org to easily use Pulumi Automation API here: https://cloud-courier.readthedocs.io/en/latest/setup-aws.html
a
Hi, thanks for replying. Actually i just want to know how to correctly set backend & custom secret provider during initialization. Looking at the code i think that is probably inside of ephemeral_pulumi_deploy package right? Is it open source (tried to find but no success)?