pulumi / esc

Pulumi ESC (Environments, Secrets, and Configuration) for cloud applications and infrastructure.
https://www.pulumi.com/product/esc/
Apache License 2.0
195 stars 4 forks source link

Specify which environment you wish to use with conflicting variable names #342

Open liamawhite opened 2 weeks ago

liamawhite commented 2 weeks ago

Hello!

Issue details

if you have two conflicting values that you import, it would be good to be able to reference them explicitly by environment name e.g....

env1
---
values:
  somekey: value1

env2
---
values:
  somekey: value2

env3
---
imports:
  - env1
  - env2
values:
  pulumiConfig:
    value1: ${env1@somekey}
    value2: ${env2@somekey}

This problem is a little annoying when the same team controls both enviroments as you have restructure things to make them unique. But if another team owns the environment you're consuming it becomes a PITA, especially if other teams rely on the existing structure.

I'm not too bothered on the syntax its just meant to illustrate the problem!

Affected area/feature

esc