https://serverless-stack.com/ logo
Join Slack
Powered by
# help
  • j

    Jason S

    06/09/2022, 2:55 AM
    Running this through the debugger, you can see that the
    topicBus
    environment only contains the two variables set in the
    defaultFunctionProps
    . It does not include
    TOPIC_BUS_ARN
    f
    • 2
    • 5
  • j

    Jeff Cordova

    06/09/2022, 4:05 AM
    Hi, I'm trying out the new SST. I'm trying to follow the guide in your page. I'm currently in https://serverless-stack.com/chapters/add-an-api-to-create-a-note.html. I have already deployed the changes and I'm now in the testing part. When I go to the SST console and press the send button, the send button changes to like a sending animation and then it goes back to 'send' again. When I check the DynamoDB console, no data was saved. Is there a log where I can check what's happening? or if there's an error somewhere? Hope you can help me out. Thank you!
    m
    r
    • 3
    • 26
  • s

    Sakar

    06/09/2022, 5:38 AM
    Hi, can i mix languages in same stack eg: go and JavaScript functions.
    c
    f
    • 3
    • 3
  • f

    Francis Menguito

    06/09/2022, 8:09 AM
    Is there a feature here that functions similarly to Agenda? (https://github.com/agenda/agenda) Was thinking cron but scheduled tasks are done on random times. Like “7 days after an API is called”
    r
    • 2
    • 1
  • m

    Mike Holloway

    06/09/2022, 9:10 AM
    Hey 👋 So I've read through the guide up to the "Setting up a serverless app" (v7.2, pg 577) chapter & I'm noticing that the contents are very close to the first few chapters. Is there any major differences, what am I missing? From a quick glance, it's just the difference between using
    serverless
    vs using
    sst
    - is that correct?
    f
    j
    • 3
    • 13
  • f

    Francis Menguito

    06/09/2022, 10:12 AM
    Need help on using the queue
    Copy code
    ERROR UnknownEndpoint: Inaccessible host: `francis-one-queue' at port `undefined'. This service may not be available in the `us-east-1' region.
    m
    • 2
    • 4
  • f

    Francis Menguito

    06/09/2022, 11:00 AM
    What’s the right type here for queue handlers?
    r
    • 2
    • 2
  • f

    Francis Menguito

    06/09/2022, 12:48 PM
    Anyone know why this happens?
    Copy code
    ❌  francis-one-QueueStack failed: Export francis-one-QueueStack:ExportsOutputRefQueue381943A6E54414F3 cannot be updated as it is in use by francis-one-ApiStack
    f
    • 2
    • 2
  • k

    Kevin Grimm

    06/09/2022, 1:06 PM
    This is resolved but flagging in case it's not related to my computer/browser cache... I tried to view a DynamoDB item in the SST Console and the screen contents never rendered. However the data was present in the 2nd network request to DynamoDB so I pulled from there. Adding console + network screenshots for ref
    f
    • 2
    • 2
  • c

    Ciak

    06/09/2022, 1:09 PM
    Hi Guys, I’m trying to add a lambda authorizer to the GraphQLApi constructor. The doc says that GraphQLApi extends Api so it should be possible to add the “authorizers” key (that is also suggested by typescript) but when I try to define it I get the following error
    "Type '{ myAuthorizer: { type: string; function: sst.Function; resultsCacheTtl: string; }; }' is not assignable to type 'undefined'.
    here you have the code:
    Copy code
    const api = new sst.GraphQLApi(this, "apollo-api", {
          server: fun,
          authorizers: {
            myAuthorizer: {
              type: "lambda",
              function: new sst.Function(this, "Authorizer", {
                handler: "src/authorizer.main",
              }),
              resultsCacheTtl: "30 seconds",
            },
          }
        });
    f
    • 2
    • 3
  • s

    Sakar

    06/09/2022, 3:02 PM
    How to supress this error Warning: Setting the stage in the "sst.json" will be deprecated soon. how to set my stage in latest version.
    t
    f
    • 3
    • 2
  • s

    Sakar

    06/09/2022, 3:07 PM
    Hi, after running npm run start , the https:// endpoints are not shown. Only the console endpoints is shown. am I to configure any thing?
    t
    • 2
    • 6
  • t

    Tony J

    06/09/2022, 3:51 PM
    (Cross-post from the guide section but it's more of a help question sorry) https://serverless-stack.com/chapters/dynamically-generate-social-share-images-with-serverless.html Hi! Quick question about this guide. Since there is a cloudfront distribution with TTL of a year. There is no need to save the captured images to an s3 bucket right? Without the s3 component but with the same cloudfront configuration it would get run once, image would be captured on the fly and returned, and the result would be cached by cloudfront for a year so the api would never trigger again for the same social card request? Or is there something I'm missing? Just wondering because this guide is great and we're going to use it but the s3 + cloudfront felt like doing the same thing twice in terms of permanent caching
    f
    • 2
    • 1
  • ö

    Ömer Toraman

    06/09/2022, 4:26 PM
    Can we have a EvenBridge event pattern for filtering the length of an array?
    f
    • 2
    • 2
  • s

    sstefdev

    06/09/2022, 6:32 PM
    Hello guys, wanted to ask, did someone had this error when trying to build the ReactStaticSite Stack?
    f
    j
    • 3
    • 6
  • a

    Adrián Mouly

    06/09/2022, 7:30 PM
    Hey guys. Does somebody investigated best-practices on how to organize multiple repositories and/or libraries in a company? In my company we use a pretty standard stack with NestJS and React, with different teams working on features. We have some backend libraries (for nestjs) and some frontend libraries (for reactjs). But also we have some “standard” libraries which are not dependent on a framework. I want to find a naming convention for the NPM packages, and also for the Git repositories. Also… thinking how to store those packages in Git… I was thinking to create 2 main repositories like “nestjs-common” and “reactjs-common”… and inside will have different folders, one for each package with their own
    package.json
    (authentication, design library, etc). Other question is.. should I organize projects/packages by technology or by feature? Each of them has good and bad things. I want to discuss this topic and looking for ideas 🙂
    a
    j
    • 3
    • 21
  • s

    Sam Hulick

    06/09/2022, 9:46 PM
    is there any way to do build-time env vars instead of runtime? it seems like anything in .env.* has to be passed into Lambda functions using the
    environment
    property. but this can get pretty tedious. is there some way for env vars to get evaluated and baked into the code?
    a
    r
    • 3
    • 9
  • ö

    Ömer Toraman

    06/10/2022, 2:49 AM
    Hey, do you have any example code snippet to create an alarm for lambda being called X times in N seconds?
    f
    • 2
    • 3
  • j

    justindra

    06/10/2022, 4:32 AM
    Heyo, I'm looking to trigger a lambda function at some point in the future. E.g. I want to run it 6 months from when a user creates an account in cognito. In the past, I've done this by using step functions but it was quite costly. So just wondering if anyone here has another idea on how to do this?
    c
    r
    +4
    • 7
    • 16
  • k

    Karolis Stulgys

    06/10/2022, 11:39 AM
    👋 how do I add
    /api
    prefix for all of my endpoints? I know there is a way, don't remember how
    a
    f
    k
    • 4
    • 3
  • r

    Ross Gerbasi

    06/10/2022, 4:34 PM
    Silly, slightly pointless, question. Should
    sst-env.d.ts
    be ignored from git? Curious what others do.
    t
    j
    • 3
    • 9
  • d

    Drewrey Lupton

    06/10/2022, 5:20 PM
    Hello! I’m using the NextjsSite construct to deploy a stack. When I
    yarn deploy
    , the 3 NextJS lambdas are all using Node 12.x. How can I specify a NodeJS version for these NextjsSite construct lambdas?
    t
    j
    +2
    • 5
    • 19
  • s

    Seth Geoghegan

    06/10/2022, 9:27 PM
    When changing the value in a
    .env.local
    file, when does that change get picked up? I've noticed that changes to that file are not always reflected when I re-deploy my infrastructure
    f
    • 2
    • 6
  • g

    Guy Shechter

    06/10/2022, 10:04 PM
    Has anyone seen this error when deploying a docker image asset from a Mac?
    f
    • 2
    • 8
  • a

    Adam Biggs

    06/10/2022, 11:06 PM
    Sorry if I missed something in the docs, but I can't seem to figure out how to access stack props inside functional stacks.
    Copy code
    const stackProps = { foo: 'bar' }
    app.stack(MyStack, stackProps) // How do I access stackProps inside MyStack?
    e
    f
    • 3
    • 6
  • o

    ooedemis

    06/11/2022, 1:15 AM
    Hello folks i checkout the java-feature branch but lost is there actually live lambda deployment also with java supported or any examples/starters?
    f
    j
    • 3
    • 6
  • s

    Shubham Sinha

    06/11/2022, 6:04 AM
    Is there a guide for integrating remix.run with SST ?
    d
    f
    s
    • 4
    • 4
  • m

    manitej

    06/11/2022, 2:28 PM
    I don't think it's a bug, local and prod creates 2 different tables.
    e
    j
    +3
    • 6
    • 37
  • j

    Jan Nylund

    06/11/2022, 3:34 PM
    I’m setting up a ci/cd pipeline on gitlab for running sst deployments, and it seems to be amazingly slow. part of the slowness is related to the docker builds that happen in the deploy stage, any suggestions on how to improve performance here? I’m not sure gitlab is able to cache docker layers.
    f
    • 2
    • 21
  • j

    Jan Nylund

    06/11/2022, 4:56 PM
    Shoudl the
    .sst
    folder be in
    .gitignore
    or should it be committed? 🤔
    t
    • 2
    • 1
1...7980818283Latest