https://pulumi.com logo
#general
Title
# general
a

abundant-book-94104

12/14/2021, 10:51 PM
Hi All, I use a naming convention of services and servers where it has DEV TSTS PRD etc in the name. When changing stacks do people use automation to get the stack and then change the name from DEV to PRD based on selected stack? This would also be used for selecting our azure subscription if that's the pattern. What's the convention here to do this?
r

red-match-15116

12/14/2021, 10:55 PM
Seems like a reasonable convention. To avoid coupling the stack name and resource names I would probably pass an
environment
key to my config and use that to populate names.
l

little-cartoon-10569

12/14/2021, 10:58 PM
Yes, decoupling is good. I renamed a stack that did something like that: when I changed it from "dev" to "dev-old" it wanted to delete all my resources.. had to decouple then 🙂
a

abundant-book-94104

12/15/2021, 12:38 AM
Ok thanks, that sounds good
2 Views