https://pulumi.com logo
#esc
Title
# esc
s

square-noon-40215

11/19/2023, 4:24 PM
Hey Y'all- Quick question that I can't find an answer for. Are pulumi ESC Environments supported by the Automation API yet? Know you normally set config like :
await stack.setConfig("aws:region", { value: "us-west-2" });
And this feels config related, but was maybe expecting an
await stack.setEnvironments(["aws-prod", "azure-prod"])
kind of method?
r

red-match-15116

11/19/2023, 5:53 PM
Not yet, but there's an open issue for it here: https://github.com/pulumi/pulumi/issues/14512 Please upvote and/or leave a comment - will definitely help us prioritize.
s

square-noon-40215

11/19/2023, 5:55 PM
Thanks for pointing me to the issue! 🙌
r

red-match-15116

12/19/2023, 11:05 PM
You can now do
stack.addEnvironments("env1", "env2")
and
stack.removeEnvironment("env1")
. Hope that unblocks you!
s

square-noon-40215

12/19/2023, 11:13 PM
Fab thanks @red-match-15116 🙌 think that will do it! 👍