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

nice-airport-15607

10/03/2019, 5:16 PM
Hey Pulumers! Is there a way to see the git details that you’re logged into via the cli? When logging into Pulumi console, I log in with my github creds, that being said, I see the latest branch hash in the console, I was curious if there’s a way to see that from my local machine via
pulumi stack...
commands.
c

colossal-beach-47527

10/03/2019, 5:20 PM
There is not a CLI gesture to do it now, nor is there an easy way to see it in the website either. But if you are curious, let me dig up the
curl
command you can run to see all the data that pulled from the environment when you run a preview or update.
n

nice-airport-15607

10/03/2019, 5:28 PM
cool thx
i think the
activity
tab on the website would be a cool feature to be able to view via
pulumi stack activity
or some flag… at least the last activity.
c

colossal-beach-47527

10/03/2019, 5:55 PM
Sorry for the delay, we’ll surface this information in the UI somewhere. But here’s the command you can run in the mean time. (Piping the results to
jq
for clearer rendering.)
Copy code
# Substitute out chrsmith/.../dev for your own stack.
curl \
    -H "Authorization: token ${PULUMI_ACCESS_TOKEN}"  \
    <https://api.pulumi.com/api/stacks/chrsmith/aws-access-key-rotator/dev/updates/14?output-type=service> | jq
n

nice-airport-15607

10/03/2019, 6:18 PM
oh this looks rad, trying.
@colossal-beach-47527 does the
/updates/14/
stay in there as well, or take that out too?
c

colossal-beach-47527

10/03/2019, 6:25 PM
So the “14” is the update version. So the next time you update the stack, it would be 15, 16, etc. If you always want the latest, just replace “14" with “latest”.
n

nice-airport-15607

10/03/2019, 6:27 PM
for the
-H "Authorization: token ...
, does that
token
need to be there, or just
pul-12349999
?
getting
parse error: Invalid numeric literal at line 1, column 10
, I’ll keep working on this, but i totally appreciate it @colossal-beach-47527
Oh, just noticed your url has
<https://api>.
, mine is
<https://app>.
right?
👍🏽 1
ah ha! got thx so much