https://serverless-stack.com/ logo
Join SlackCommunities
Powered by
# random
  • d

    Devin

    12/22/2021, 7:15 PM
    I’ve abandoned form libraries for XState on the front end. Armed with the knowledge that
    @xstate/form
    is coming anyway
    t
    • 2
    • 4
  • s

    Sam Hulick

    12/24/2021, 5:57 AM
    wow. today I learned that you can avoid the not-so-useful S3 “access denied” error when trying to access a nonexistent file, if the role used to access the file has
    s3:ListBucket
    permission.
    f
    • 2
    • 2
  • g

    Gjorgji Kjosev

    12/25/2021, 12:08 AM
    Merry Christmas, and thanks for the nice, well documented, welcoming with tutorials, easy to use framework 😄 Appreciate the great work.
    j
    • 2
    • 1
  • t

    thdxr

    12/25/2021, 2:44 PM
    This is messed up
    r
    g
    j
    • 4
    • 6
  • g

    Gjorgji Kjosev

    12/29/2021, 12:33 AM
    Hey, I was wondering, is MUI is the typical go-to for Material UI components for React? (Any other recommendations welcome too)
    d
    • 2
    • 2
  • s

    Sam Hulick

    12/29/2021, 5:35 AM
    I have strong feelings about Safari 😆 (I have at least 4-6 other comments similar to this in my projects) it sucks because it can sometimes add a couple of hours of time I shouldn’t have had to spend
    t
    • 2
    • 4
  • s

    Sam Hulick

    12/30/2021, 1:17 AM
    anyone else here use VS Code? is there any kind of extension that lets you add specially formatted comments in your code, like
    // —- Some comment --
    and then it’ll treat those as a sort of index or table of contents that you can easily jump to?
    m
    d
    • 3
    • 4
  • g

    Garret Harp

    12/31/2021, 7:43 PM
    Just curious what does everyone here use for analytics when using DynamoDB?
    f
    h
    +2
    • 5
    • 5
  • s

    Sam Hulick

    01/03/2022, 2:04 AM
    a seasoned dev like me should not be asking such a newbie question, but.. 😅 when you deploy an update to two separate stacks/repos and the app will bomb if they’re not both live at the same time, how do you handle those scenarios? all I can think of putting some temporary conditions in place in one of the stacks that will handle either the old or new format. once everything is deployed, then remove those conditions & re-deploy that stack
    c
    d
    +3
    • 6
    • 14
  • s

    Sam Hulick

    01/05/2022, 5:08 AM
    anyone know how to slow down the flow of SQS messages into Lambda? I have the default batch size of 10.. but obviously SQS is throwing stuff quickly at Lambda, and I’m getting AppSync throttle errors because it tried to call about 1000 mutations at once
    g
    • 2
    • 4
  • d

    Devin

    01/05/2022, 4:15 PM
    https://www.producthunt.com/golden-kitty-awards-2021
    s
    j
    • 3
    • 3
  • t

    thdxr

    01/05/2022, 6:11 PM
    https://twitter.com/Sarutule/status/1478763457625350144?t=vsdhv4KvMH167bPxMBxmTA&s=19
    s
    g
    • 3
    • 2
  • r

    Ross Coundon

    01/05/2022, 8:47 PM
    I notice you're using Netlify for the new console, we use Netlify a fair bit and it's a good DX but I've been considering whether it'd make sense to move over to Cloudfront so everything's in one place. The fact that you guys aren't doing that has given me pause, so curious to hear your thoughts on why you chose Netlify
    t
    • 2
    • 4
  • s

    Sam Hulick

    01/05/2022, 9:32 PM
    man, I’m really considering moving from us-east-1 to us-east-2. UE1 is a mess lately 😕 did anyone else have S3 issues today?
    a
    d
    • 3
    • 27
  • s

    Sam Hulick

    01/05/2022, 11:14 PM
    does anyone know off the top of their head what happens if you have a step function in a waiting state, and you do
    SendTaskFailure
    to it using the task token? I assume the step function just throws an error and ends in a failed state..?
    b
    s
    d
    • 4
    • 10
  • s

    Sam Hulick

    01/06/2022, 5:01 PM
    AWS: “We provide ultimate scalability” Also AWS: “TooManyRequestsException: Whoa, slow down” (sigh)
    a
    • 2
    • 1
  • r

    Ross Coundon

    01/07/2022, 7:51 AM
    Lambda now allows ES modules and therefore top level await https://aws.amazon.com/blogs/compute/using-node-js-es-modules-and-top-level-await-in-aws-lambda/
    s
    • 2
    • 1
  • t

    thdxr

    01/07/2022, 1:58 PM
    https://twitter.com/BricePelle/status/1479204740290383873?t=fLwch0fiK5Vqpjg72hgtkA&s=19
    j
    g
    • 3
    • 5
  • g

    Garret Harp

    01/07/2022, 3:29 PM
    https://twitter.com/ednergizer/status/1479215585326108674?t=JMeGHjQ9o1-HwEK464vWoQ&s=19 it's like the appsync team saw my message in here about ULIDs
    t
    • 2
    • 3
  • t

    thdxr

    01/08/2022, 10:24 PM
    Those of you familiar with GQL - how are you handling errors? I see some use error union types on results. It's cool it makes things typesafe but I'm wondering if there are any downsides?
    o
    • 2
    • 6
  • s

    Sam Hulick

    01/10/2022, 6:12 PM
    I just spoke with a friend who works at a major telecom company and she said they only give them temporary AWS credentials (that start with ASIA*) AND they change the credentials every 30 mins. Is this unusual? How on earth are you supposed to work with a temporary STS key?
    t
    d
    +2
    • 5
    • 24
  • a

    Alex Ketchum

    01/10/2022, 9:05 PM
    General Node/Async/Lambda Question We are switching from storing ssm parameter store variables in process.env to accessing them via API at runtime (this is more secure and avoids the 4kb max env variable size on lambda functions) Currently we have a developer friendly set up like the following, where the environment variables are resolved at deployment by serverless environment variables
    Copy code
    // Node.js file
    const {a,b,c} = process.env
    
    module.exports.lambdaHandler1 = async () => {
      console.log(a)
      helperFunction1()
    }
    
    function helperFunction1() {
      console.log(b)
    }
    
    module.exports.lambdaHandler2 = async () => {
      console.log(c)
    }
    We want to switch to using the AWS Node SDK getParameters function to get the parameters at run time. Does anyone have any suggestions for calling the get parameters function at the top of the lambda handler file to simplify variable declaration for these variables that will be shared across many functions? This is an async function, so i cant await the function call at the top level, since it is outside any async functions. My immediate first idea was a simple change to something like below, but this does not work due to the getParameters call being async.
    Copy code
    // Node.js file
    
    // This wont work because you can not use await outside an async function
    const {a,b,c} = await AWS.SSM().getParameters(['/path/to/a', '/path/to/b', '/path/to/c'])
    
    
    module.exports.lambdaHandler1 = async () => {
      console.log(a)
      helperFunction1()
    }
    
    function helperFunction1() {
      console.log(b)
    }
    
    module.exports.lambdaHandler2 = async () => {
      console.log(c)
    }
    What I really want to avoid is calling the “getParameters” function inside each lambda handler. That results in a lot of duplicate code and means that any helper function where we want to use an environment variable (like a database name) must be asynchronous or updated to take the env var as a parameter, which is unnecessary for many of these helper functions
    s
    a
    t
    • 4
    • 13
  • s

    Sam Hulick

    01/11/2022, 4:14 AM
    hey all. is there some way in JavaScript (when an error is thrown) to trim off parts of the stack that are outside your code? I sometimes have issues with AWS libraries where the stack is just loaded with stuff I don’t care about because it’s within the AWS SDK.
    t
    • 2
    • 4
  • o

    Omi Chowdhury

    01/11/2022, 7:38 PM
    Any recommendations for a graphql client in golang? Asking for a friend (customer)
    t
    j
    • 3
    • 4
  • s

    Sahan Amadoruge

    01/12/2022, 4:03 PM
    Is there a way to enrich OpenAPI definition exported using API Gateway?
    l
    • 2
    • 3
  • r

    Ross Coundon

    01/13/2022, 5:04 PM
    Just tinkering with WebStorm as an alternative to VSCode and can't find the setting that allows the submission of a keystroke in the terminal when a debug session is running. I.e. when SST spots there are infrastructure changes to deploy you need to hit Enter but I can't find how to actually send that key press to the SST process
    l
    • 2
    • 6
  • t

    thdxr

    01/13/2022, 8:15 PM
    Does anyone know of a managed way to copy data from one rds cluster into another? It would be a drop and replace - not creating a new cluster from snapshot
    s
    • 2
    • 1
  • c

    Carlos Daniel

    01/13/2022, 10:50 PM
    got to say I’m almost considering buying another screen just to let the console always open when working with SST 😆. great job guys, this has been increasing my productivity a lot.
    j
    s
    +3
    • 6
    • 17
  • g

    Gjorgji Kjosev

    01/15/2022, 2:25 AM
    Wrote a wordle solver in Rust!
    • 1
    • 1
  • t

    thdxr

    01/19/2022, 12:29 AM
    https://twitter.com/nathangloverAUS/status/1483495557645869056?t=gwXAhqm6XlI4WecdUxEYjg&s=19
    j
    g
    • 3
    • 2
1...567...10Latest