https://serverless-stack.com/ logo
Join Slack
Powered by
# sst
  • s

    Sione

    02/26/2021, 7:06 AM
    Curious, any plan to allow SST Topic construct to also accept subscriptions props like
    filterPolicy
    ? Also along with it, support to add other kind of subscribers like SQS... I was hoping to migrate serverless framework pub/sub service with several filter policies to SST.
    f
    • 2
    • 9
  • s

    Seth Geoghegan

    02/26/2021, 9:52 PM
    I have been using the API construct to define an api with two different types of authentication. For example, some endpoints have IAM, others require no auth. Is the API construct meant to enable this via
    defaultAuthorizationType
    ?
    f
    • 2
    • 74
  • r

    Roger Rajaratnam

    02/27/2021, 11:57 AM
    I’m getting the following error
    Copy code
    ===============
     Deploying app
    ===============
    
    Preparing your SST app
    Transpiling source
    Linting source
    Deploying stacks
    
    Error: The specified permissions are not supported.
    Following this tutorial: https://serverless-stack.com/examples/how-to-add-cognito-authentication-to-a-serverless-api.html
    f
    • 2
    • 4
  • p

    Pål Brattberg

    03/01/2021, 7:09 PM
    Hey I just started testing
    sst.Api
    and one thing that I noticed was different is that I get a notice of the following for each route:
    Copy code
    Transpiling Lambda code...
    No package.json found in services/mobile-api/
    No package.json found in services/mobile-api/
    Debug session started. Listening for requests...
    I do not see this while defining
    sst.Function
    s. Note: I use a single package.json in my root folder and many services below this, like
    ./services/a, ./services/b, ./services/c
    f
    j
    • 3
    • 16
  • p

    Pål Brattberg

    03/01/2021, 8:12 PM
    Another question on the
    Api
    construct: I'm defining my full application spread out in multiple services, each with their own
    sst-stack.js
    file that is replacing my old
    serverless.yml
    files. I also have some common functions they use. In order to have all my routes use the same custom domain, it seems it would be smart to use a single Api and have each service add their routes to it. I didn't see any support for adding to the construct outside the constructor but wanted to check - is this supported? Does it sound like a reasonable idea? Does this move beyond your plans for SST and would be better handled in native CDK?
    f
    • 2
    • 9
  • m

    Mike McCall

    03/02/2021, 2:33 PM
    I am trying to access my region per the docs here: https://docs.serverless-stack.com/installation#project-config But I am running into this error Property 'region' does not exist on type 'IConstruct'. 23 REGION: this.node.root.region
    j
    f
    • 3
    • 14
  • s

    Seth Geoghegan

    03/02/2021, 4:41 PM
    which results in an error
    Copy code
    TypeError: Cannot destructure property 'sqsQueue' of 'props' as it is undefined.
        at new Queue (/Users/sethgeoghegan/dev/signup-and-run/node_modules/@serverless-stack/resources/src/Queue.ts:23:7)
    f
    k
    • 3
    • 29
  • t

    thdxr

    03/03/2021, 2:51 AM
    Is that to prevent too much deviation from how api gateway routes in production?
    f
    • 2
    • 3
  • m

    Mike McCall

    03/03/2021, 5:16 AM
    any plans to add removal policy option to sst.Table?
    f
    • 2
    • 3
  • r

    Roger Rajaratnam

    03/03/2021, 8:03 PM
    Is there any reason why you can’t auto reload on when this happens?
    f
    • 2
    • 7
  • d

    Dillon Peterson

    03/03/2021, 11:01 PM
    @Jay How is the way to go about using Python with SST? Is that possible? Or is SST more for JS?
    f
    j
    j
    • 4
    • 47
  • r

    Roger Rajaratnam

    03/04/2021, 5:11 PM
    Will you guys be adding a single page app construct?
    f
    • 2
    • 16
  • r

    Roger Rajaratnam

    03/04/2021, 5:46 PM
    How do you specify the JWT scope for a single route?
    f
    • 2
    • 22
  • r

    Roger Rajaratnam

    03/04/2021, 7:45 PM
    @Frank https://github.com/serverless-stack/serverless-stack/discussions/180 <-- is this on the roadmap anytime soon?
    j
    • 2
    • 3
  • m

    Mike McCall

    03/04/2021, 8:43 PM
    I saw the 0.9.12 lazily add subscribers addition 🎉. This would be a cool addition to the api construct. I know you could access the cdk HttpApi and add additional routes that way, but lazily adding routes the SST way would be a great addition to sst.Api!
    f
    • 2
    • 4
  • t

    thdxr

    03/05/2021, 12:34 AM
    seems like
    this
    isn't accepted as a construct
    f
    • 2
    • 11
  • t

    thdxr

    03/05/2021, 7:05 AM
    Is there any way to specify additional files to include when deploying? I need to make sure that
    node_modules/.prisma
    is zipped up
    f
    j
    • 3
    • 15
  • r

    Roger Rajaratnam

    03/05/2021, 12:04 PM
    SST is not removing Cognito user pools on “sst remove” if there are users in the pool, is this expected behaviour?
    s
    f
    • 3
    • 5
  • s

    Seth Geoghegan

    03/05/2021, 5:32 PM
    When setting up custom domains with the API construct, is there a preferred method to handle subdomains that already exist?
    f
    • 2
    • 25
  • j

    Julien Goux

    03/05/2021, 9:39 PM
    Also doing my deploys/destroy outside of github actions would make sense
    f
    • 2
    • 27
  • j

    Justin Kasad

    03/07/2021, 2:15 AM
    Hi everyone, quick question regarding hybrid apps on seed.run. I’m currently migrating my serverless framework (built using serverless-stack v3) to SST. I created a new service on seed for the SST service and have existing seed services for the serverless.yml services. The deploy succeeds but the SST service is being deployed to a different endpoint (I use
    CfnOutput
    to output the endpoint and see it in the logs) How do I get the SST service to deploy to the same endpoint as the serverless.yml services? The same one that seed.run returns after building. Thank you for your help!
    f
    • 2
    • 19
  • t

    thdxr

    03/08/2021, 12:59 AM
    hm I guess I only need this for non-local development where this isn't an issue
    f
    m
    • 3
    • 12
  • r

    Roger Rajaratnam

    03/08/2021, 8:06 PM
    Is it possible to setup a custom authoriser for the API construct?
    f
    • 2
    • 6
  • r

    Ross Coundon

    03/08/2021, 8:22 PM
    Is there a roadmap for the addition of REST APIs in SST?
    f
    g
    • 3
    • 14
  • t

    thdxr

    03/09/2021, 1:15 AM
    I started doing the latter as I needed it for my system: https://github.com/ironbay/serverless-stack/commit/7c4403b69973caca3f74b1d6f747e70205066635#diff-afd94e9d7ffa6f7ab02a2[…]7428b7196d7c6e4f3ba5fffdR31
    f
    • 2
    • 21
  • g

    Gerardo Munguia Hoyo

    03/10/2021, 12:14 PM
    I was in contact with @Jay before (more than a year ago) via email regarding monorepo project structure with Serverless. According to the guide, "SST supports monorepo setups automatically". I was wondering how a monorepo setup looks like in SST. Is there an example repo?
    g
    m
    f
    • 4
    • 5
  • n

    Norman Khine

    03/10/2021, 3:17 PM
    Hello There’s some features either missing or not yet covered in the docs, e.g. how to configure the Lambda onError target to an SQS as DLQ; although it is possible to use actual CDK in this same config, so that may cover it; But was wondering if someone here can point me in the right direction
    s
    f
    • 3
    • 7
  • p

    p0wl

    03/10/2021, 5:46 PM
    okay, I see that sst.Function makes sense, but wouldn’t it be possible to just add the debug stack to my existing cdk app? I don’t want to change every stack for SST
    f
    • 2
    • 13
  • d

    deini

    03/10/2021, 11:33 PM
    Is there a way to setup vscode to debug a lambda? Even if it times out in 30s (api gateway / appsync).
    f
    m
    k
    • 4
    • 24
  • j

    Jesse Wynants

    03/11/2021, 7:33 PM
    Hi all, if I'm correct using Lambda Layers isn't support yet by sst?
    f
    t
    +2
    • 5
    • 73
12345...33Latest