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.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()
name: aws
description: kms configuration
    name: python
        virtualenv: env
  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