dry-journalist-60579
11/12/2024, 2:53 AM# Pulumi.yaml
name: app-ephemeral
runtime:
name: python
description: Branch-based ephemeral environments
# Pulumi.dev.yaml
environment:
- app-ephemeral/dev
Here’s the thing though… the Pulumi code is in our infrastructure repo. I have a system already set up that leverages Pulumi Deployments via the REST API to trigger deployments of our staging and production environments… but those stacks already exist. For this, I need to 1) create the stack, 2) set the configuration, and then 3) trigger the deployment. I’m ok with #1 as I can create the stack with the automation API:
stack = auto.create_stack(
stack_name=auto.fully_qualified_stack_name("myorg", "app-ephemeral", "my-branch"),
work_dir=".",
)
I just can’t figure out how to set the config for this stack to inherit from the main environment… Anyone have any ideas? Or thoughts on a different approach?little-cartoon-10569
11/12/2024, 3:32 AMdry-journalist-60579
11/12/2024, 3:37 AMlittle-cartoon-10569
11/12/2024, 3:43 AMlittle-cartoon-10569
11/12/2024, 3:43 AMlittle-cartoon-10569
11/12/2024, 3:45 AMdry-journalist-60579
11/12/2024, 1:28 PMdry-journalist-60579
11/12/2024, 5:42 PMenvironment:
supported in the main Pulumi.yaml? It doesn’t seem to be taking that configlittle-cartoon-10569
11/12/2024, 8:57 PMlittle-cartoon-10569
11/12/2024, 8:58 PMdry-journalist-60579
11/12/2024, 9:32 PM