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

gifted-island-55702

02/20/2019, 8:00 PM
Also when I checked a Stack resource in the exported stack json file, for example for the project and stack names above its:
urn:pulumi:dev::example::pulumi:pulumi:Stack::example-dev
. Is this intended?
l

lemon-spoon-91807

02/20/2019, 8:01 PM
Just to clarify:
are you referring to if it's intentional that we just show the final 'name' portion?
i.e. 'example-dev' versus the entire URN?
or are you asking about it being of the form a-b
g

gifted-island-55702

02/20/2019, 8:03 PM
The URN is I guess an internal implementation detail of pulumi so I was just curious
l

lemon-spoon-91807

02/20/2019, 8:03 PM
actually, we don't consider it an internal impl details
g

gifted-island-55702

02/20/2019, 8:03 PM
But the stack name in the resources list where the name is different than actual stack name
So that struck me 🙂
l

lemon-spoon-91807

02/20/2019, 8:03 PM
so we think of the URN as a totally unique name.
however, for purposes of display, we show just hte 'name' portion (which may not be unique) but keeps things tidy
g

gifted-island-55702

02/20/2019, 8:04 PM
My stack is named
dev
(as shown in the
Previewing update (dev)
and in the web console) but on the list of resources its name is
<project>-<stack>
l

lemon-spoon-91807

02/20/2019, 8:05 PM
ok. so this is less about the full URN, and more about hte choice of project-stack?
and being inconsistent with how we refer to the stack itself in a few places?
if so, i can def see how that is confusing
g

gifted-island-55702

02/20/2019, 8:06 PM
It’s about confusion - the naming in the preview screen is inconsistent
l

lemon-spoon-91807

02/20/2019, 8:06 PM
Right. i was just thrown off by your references to the URN 🙂
that's why i was asking if this was about URN vs short-name, or the actual choice of how we showed hte stack name in a few places.
g

gifted-island-55702

02/20/2019, 8:07 PM
Well, I just paid more attention to the stack name as I was doing manual “stack rename” 😉
to have a stack name without the project name (I created the stack when the name had to be unique in the whole org)
l

lemon-spoon-91807

02/20/2019, 8:07 PM
Alright thanks. Opening a bug on this 🙂
What's your github alias?
g

gifted-island-55702

02/20/2019, 8:08 PM
To “rename” my stack I exported existing stack to json file, replaced all occurences of its name with the new stack name. Then I created a new stack with shorter name and imported json file. I was modifying urns and I noticed that the urn of the stack resource also includes the project name 🙂
pbzdyl
l

lemon-spoon-91807

02/20/2019, 8:11 PM
g

gifted-island-55702

02/20/2019, 8:16 PM
Thanks - I have added a comment there.