> :loudspeaker: Update In v0.52.0, we added SST...
# general
f
📢 Update
In v0.52.0, we added SST Console — a web based UI that shows you all the constructs in your app, and you can manually trigger them. This allows you to live debug a Cron job without needing to wait for it to get invoked; debug a Queue consumer directly without needing to invoking the API that sends a message to the queue first; etc. We kept the features to the minimum for this early version. Let us know what features you’d like to see. To give it a try, run
Copy code
npm run start -- --console
or
Copy code
yarn start --console
j
I’ll also add that I think it does a better job of highlighting if there are any errors in your app and if there are any infrastructure changes that need to be deployed.
s
WOW. this is so cool. much needed feature. Q, I just ran it on mine, does it suppose to show all the constructs, it's only listing Api and dynamo tables only?
k
I am noticing that my EventBus targets are not showing I would suggest if possible to add support for EventBus and SNS
Another small suggestion would be to somewhere show the outputs of the stacks
r
This looks like a great addition. One thing I've noticed that if the stage is appended to the API URL, the browser console isn't aware of it. e.g. clicking on one of the routes labelled
/somepath/add
when the stage is my-stage just bring up
my-stage/somepath/add
but my-stage is missing so the api call fails unless you manually adjust in the browser. I guess this is only really useful for GET as it opens in the browser but being able to copy/paste the accurate URL for curl or Postman would be handy
f
@Sione yeah currently Console only shows SST constructs.
@Kujtim Hoxha you can trigger an SNS topic via the Console already. Yeah, EventBus in coming.
s
Neat, looking forward to checking this out!
f
@Ross Coundon gotcha.. is this for
ApiGatewayV1Api
?
r
No, it's the HTTP API
f
And you are setting the stage name in the custom domain base path?
r
We do it via an HttpStage e.g.
Copy code
new HttpStage(this, 'Stage', {
      httpApi: api.httpApi,
      stageName,
      autoDeploy: true,
    });
f
r
cool
d
@Drew
s
@Frank so SST functions should be shown, right? SST functions not showings on mine.
f
Are these standalone functions not tied to other SST constructs?
d
Oh this sounds great! Thanks @Frank
s
@Frank Yes, they are all standalone SST functions.
f
@Sione got it! Just curious, are they being used by non-SST constructs?
s
Yah they used as consumers for cdk eventbridge, kinesis stream and tasks in step functions.
f
@Sione Got it! Noted!
l
@Branko Gvoka ;)
f
@Ross Coundon following up on the stage name issue, do you have
createDefaultStage: false
set in ur
sst.Api
?
r
Hi @Frank - yes we do
f
@Ross Coundon should be fixed in v0.53.0
r
Great, thank you
m
I am seeing the same thing as @Sione, sst functions are not showing.
s
this is interesting! though I’m not sure what I should use it for. I can’t actually fire off crons because no Lambda functions are listed. all I can do is copy URLs from my resources. (I can’t invoke API calls since it requires auth) you know what would be REALLY awesome in this UI? instead of the raw text REQUEST/RESPONSE lines, actual calls that you can expand to see the full request payload & response payload
f
@Sam Hulick noted the request/response payload
@Sam Hulick do you see the trigger button for ur Crons?
s
@Frank my mistake, I must’ve missed it! thanks 🙂
ö
@Frank @Jay I cannot see the Queue that I defined in my stack definition. Am I doing something wrong? 🤔 My Stack | The Console
By the way very cool and promising feature
j
@Frank have a look at this when you get a chance!
f
hey @Ă–mer Toraman, it seems you are using the
sqs.Queue
. Currently only `sst.Queue`s show up in the Console.
ö
Oh I see, so only
sst
Constructs will show up?
f
Yeah at the moment. Most likely supporting CDK constructs as well down the road.