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

    Ross Coundon

    04/27/2021, 12:18 PM
    I need to specify some bundling parameters in functionProps. Rather than adding to every function definition, is there a way to either 1. Set some default properties for all functions? or 2. Get access to the functionProps after instantiation so I can push all of them into an array and add a property afterwards? I can’t see a way to either at the moment.
    p
    j
    • 3
    • 4
  • r

    Ross Coundon

    04/27/2021, 3:22 PM
    Is it deliberate that the option to select a build machine size isn’t visible for SST apps?
    j
    • 2
    • 3
  • d

    Daniela Vaz

    04/28/2021, 1:33 AM
    Have someone unit testing examples using SST + GraphQL + AppSyncApi ?
    f
    j
    r
    • 4
    • 12
  • d

    Dennis Dang

    04/28/2021, 5:05 PM
    I just added a single go lambda (to utilize a Go-exclusive lib) into our node-dominant SST stack. That was too easy.
    f
    • 2
    • 2
  • j

    Jack Fraser

    04/29/2021, 5:28 PM
    Is it possible to have a customDomain setup so it uses the [stage/prefix].apis.domain.com?
    Copy code
    customDomain: {
            domainName: "*.<http://apis.domain.com|apis.domain.com>",
    would create ci.apis.domain.com or branch_name.apis.domain.com etc
    f
    • 2
    • 9
  • d

    Dennis Dang

    04/29/2021, 11:35 PM
    We'd like to use SST + Seed to generate QA envs per PR + integrate the generated endpoint into our frontend, a Nextjs app. Has anyone figured out a way to automatically connect the two deployments together? Brainstorming here. Ideally I can feed the generated api endpoint into the Vercel envs. Huh, now that I'm typing this out, perhaps it's possible to use the Vercel CLI to upload the env variable within the pipeline. Some key steps here are required: 1. how can we run the vercel cli as part of SEED's build pipeline? 2. can we actually get the endpoint and pipe it along?
    f
    • 2
    • 2
  • j

    Jack Fraser

    05/09/2021, 11:31 AM
    🪨 Trying to find the best way to handle creating and connecting to RDS Aurora PostgreSQL (serverless) database instance. Reading this thread and the SST docs it seems like it is not yet supported. Requirements are: 1. To be able to create clusters/databases per GIT branch/PR (so would need to provision it at the same time as the rest of the stack. 2. Connect to it locally when running SST in debug (happy for this to be public with no VPN to the VPC). Want to avoid having to run a Postgres instance locally. 3. Security in live is obviously important - is "AWS Secrets Manager" the way to go to handle connections? If so how would this play with the stack creation? Any thoughts or pointers welcome.
    f
    • 2
    • 2
  • r

    Ross Coundon

    05/10/2021, 4:01 PM
    What should be the process when switching from running an API via
    sst start
    to running it just in the cloud? At the moment, if I do
    sst deploy
    Fire off some requests
    sst start
    Debug some requests Then I kill sst start Any future requests fail with the error
    Copy code
    Error: Debug client not connected.
    Is the only way to do this to run another
    sst deploy
    ?
    p
    f
    s
    • 4
    • 11
  • j

    Jakob Fix

    05/10/2021, 8:21 PM
    Hi there, I can probably find this information somewhere on the AWS site, but you may have been confronted by this question yourself and have an answer easily: Is it “dangerous” to keep
    npx sst start
    running for long periods of time, like overnight? Will the websocket traffic or even the connection count toward the Free Tier usage? Or the other way around: Should I end my debug session without delay? 🙏
    f
    • 2
    • 3
  • d

    Dillon Peterson

    05/10/2021, 11:39 PM
    Hi @Frank and @Jay, is it possible to build docker image runtime and specify that for the Lambda?
    f
    • 2
    • 15
  • s

    Simon Reilly

    05/12/2021, 7:17 AM
    Hi all, when working locally I notice that the permissions assumed by utilities like the AWS-SDK are those of the local system user, and not the ServiceRole that has been assigned to the AWS resource when the stack is constructed. I think the potential here is that local debug works, and the full deploy doesn't, purely due to a permissions issue. I opened an issue for this here: https://github.com/serverless-stack/serverless-stack/issues/363. Is this something of interest?
    f
    • 2
    • 21
  • m

    Michael Clifford

    05/12/2021, 9:07 PM
    Hey guys - is there a plan to support Kinesis Data Streams for DynamoDB? Currently the framework only supports the old style streams
    f
    • 2
    • 12
  • d

    Dillon Peterson

    05/12/2021, 10:08 PM
    This relates to S3 trigger-enabled Lambda
    f
    • 2
    • 3
  • d

    Dennis Dang

    05/13/2021, 5:14 AM
    How does SST run Go lambdas locally? Can the mechanism expand to include custom lambda runtimes?
    f
    • 2
    • 15
  • s

    Simon Reilly

    05/15/2021, 2:53 PM
    I put together a POC for local AWS Xray support when running
    npx sst start
    . Would this be of any use for closing serverless-stack#123?
    f
    • 2
    • 10
  • r

    Ross Coundon

    05/26/2021, 1:22 PM
    I'm seeing an odd occurence when using a cron-based lambda with SST. When I fire up SST start, the target lambda gets hit multiple times, it almost seems to be that the SST somehow initiates a separate cron invocation in addition to the eventbridge rule/cron. The rate is deliberately set quite low - (every 5 minutes) so invocations don't overlap when debugging. Has anyone seen anything similar?
    d
    f
    • 3
    • 15
  • f

    Frank

    05/27/2021, 4:57 PM
    Hey @Dillon Peterson, do you have
    bundle
    turned off for you functions?
    d
    • 2
    • 5
  • r

    Ross Coundon

    05/27/2021, 8:42 PM
    I have a V1 API backed lambda that I'm running with
    sst start
    in VSC using debug but it's not hitting any breakpoints. What can I do to track down why?
    j
    f
    • 3
    • 52
  • a

    Adrián Mouly

    05/27/2021, 9:25 PM
    Silly question here…. how SST compares with Serverless Framework? Does anybody used SLS and moved to SST? Want to hear some feedback/comments/ideas. I been using SLS for 5 years now, and I’m pretty happy with it (not when things fails on the CF side 😂 ).
    r
    • 2
    • 4
  • u

    Uncharted

    05/28/2021, 6:19 AM
    Is it possible to have more than one entrypoint (index.ts) ?
    f
    • 2
    • 2
  • r

    Ross Coundon

    05/28/2021, 11:28 AM
    When SST notices a change in the stack definition it rebuilds and asks for the user to press enter to redeploy. When running SST via a VSC debug session, it doesn't seem to accept the enter press. I guess this is probably to do with the debug window not sending the keyboard event to the process, so I need to restart the entire debug process. Is there any way anyone knows of that I can get around this?
    f
    • 2
    • 1
  • j

    J

    06/01/2021, 1:37 PM
    Hi. The YouTube "How to Build a Complete Serverless App on AWS Using SST by Frank Wang"

    https://www.youtube.com/watch?v=doyHvOl95Fs▾

    is marked as content made for children and because of that, the "SAVE" to playlist button is disabled.
    j
    n
    • 3
    • 4
  • r

    Ross Coundon

    06/02/2021, 5:39 AM
    A nice little helpful feature would be a command line option for sst that outputs the supported version of @aws-cdk/core and @aws-cdk/assert
    f
    • 2
    • 2
  • s

    Shuo Yang

    06/02/2021, 3:53 PM
    I have an existing sls application (an app not create by
    sst start
    ),how can i benefit from sst? Is it even possible?
    r
    f
    a
    • 4
    • 9
  • m

    Mr.9715

    06/02/2021, 6:44 PM
    Serverless rules are are now in public preview. (A set of rules to validate IAC template against best practices) https://github.com/aws-samples/serverless-rules
    a
    • 2
    • 1
  • j

    José Ribeiro

    06/02/2021, 9:01 PM
    feedback time: just deployed a new project to one of my clients using SST (they use terragrunt/tf for a lot of the stuff which is a bit painful w/ lambda) and their devs amazed are at how good the DX is + how easy to define and understand a stack is 🙌 good stuff, thank you for the awesome job team! In particular to @Frank that’s been so supportive since always. Hopefully will get them using SEED to support the work you guys do there as well!
    j
    • 2
    • 1
  • s

    Shuo Yang

    06/03/2021, 5:32 AM
    Just curious (unrelated to the above question), if the stack contains non-serverless part (say I want to have my Beanstalk managed under CDK; and my serverless lambda managed under CDK as well — here SST may come into the picture), does SST still have a leg in this case? • does it have any local debugging mechanism to the non-serverless part? • Does it have any CI/CD value in this hybrid app stack?
    f
    • 2
    • 3
  • j

    José Ribeiro

    06/03/2021, 1:58 PM
    In short, we want to isolate deployments in a CI user. But for security, we’d prefer not to have this user be bale to assign higher privilege to itself (which would happen if it had full IAM createRole access). One solution is to add a permissions boundary to policy to this CI user, so that it wouldn’t be able to create users without a permission boundary as well. In the documentation above, the default
    Allow
    is to all actions on all resource, but it could as well be restricted to whatever CI needs to do in this case
    f
    • 2
    • 14
  • m

    Mike McCall

    06/03/2021, 4:29 PM
    Is .env the recommended way to add “custom context” in sst? https://docs.aws.amazon.com/cdk/latest/guide/context.html
    f
    • 2
    • 14
  • m

    Mr.9715

    06/04/2021, 3:50 PM
    Hey Guys, Is there a way to add a layer while declaring lambdas with
    sst.Api
    . I see the option in
    defaultFunctionProps
    but don't see an option to attach it separately to functions.
    f
    a
    • 3
    • 20
1...456...33Latest