https://pulumi.com logo
Title
a

alert-laptop-81342

02/02/2023, 6:56 PM
Hello all! I am having some issues, probably something stupid, with setting a project with multiple stacks and loading the configuration from the .yaml file from the respective stack. I have the following stacks: • dev-kms • staging-kms And I have these 3 pulumi config files: • Pulumi.dev-kms.yaml • Pulumi.staging-kms.yaml • Pulumi.yaml The config from dev-kms and/or staging-kms are not being loaded when I pulumi.Config(), only the content com Pulumi.yaml appears. code snippet:
"""An AWS Python Pulumi program"""

import pulumi
import pulumi_aws as aws

stack = pulumi.get_stack()

config = pulumi.Config()
Pulumi.yaml:
name: aws
description: kms configuration
runtime:
    name: python
    options:
        virtualenv: env
Pulumi.dev-kms.yaml:
config:
  aws:region: us-east-1
When I run the code only the configuration from Pulumi.yaml goes to config. How can I "fix" this? What I am doing wrong? Appreciate your attention.
Ok, just solved it here. using "name" as aws on Pulumi.yaml was a problem because of the builtin provider. I had to updated the name to aws-config and used aws-config:env on the pulumi config file