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

    Andrew W

    03/12/2021, 9:16 PM
    Any plans for DocumentDB support? Alternatively, guides on setting up the app with consideration to a VPC that needs to allow a Lambda function to have NAT configuration to access external resource (e.g. MongoDB Atlas)?
    j
    • 2
    • 4
  • r

    Ross Coundon

    03/14/2021, 9:07 PM
    Is there any documentation for attaching a debugger in Visual Studio Code to a locally running lambda?
    j
    f
    • 3
    • 3
  • a

    Artem Kalantai

    03/15/2021, 9:07 AM
    hello again, my code is normally works locally when I'm doing sst start, but I did sst deploy I have this error when run lambda on cron schedule
    c
    • 2
    • 4
  • s

    Seth Geoghegan

    03/15/2021, 5:08 PM
    I don't believe I've noticed it in the docs, but does sst.json support defining multiple environments?
    f
    • 2
    • 3
  • a

    Artem Kalantai

    03/16/2021, 6:56 AM
    guys, can someone help me here? pleeease https://serverless-stack.slack.com/archives/C01JG3B20RY/p1615799230066000, punycode is not part of my codebase, so probably it is part of sst? or I can't understand from where it is. Locally it works fine, but when I deploy it on aws it doesn't work
    l
    f
    • 3
    • 26
  • l

    Loup Topalian

    03/16/2021, 10:21 AM
    Okay, I have two questions about sst start : Is the stack created based on me ? what if another dev starts the project for local dev while I am already developing from local ?
    c
    t
    f
    • 4
    • 24
  • l

    Loup Topalian

    03/16/2021, 10:23 AM
    the next one is about linting / typescript typechecking. I have a tsconfig, linting rules, etc... and all that seems to be ignored when I
    sst start
    (like node_modules throwing typescript errors). Am i missing some configuration options ?
    j
    f
    • 3
    • 16
  • m

    Mike McCall

    03/16/2021, 8:36 PM
    figured it out. expect was being imported from cdk assert.
    import { expect, haveResource, SynthUtils } from '@aws-cdk/assert'
    this is overwriting jests expect. Update expect from cdk to as expectCdk works.
    import { expect as expectCDK, haveResource, SynthUtils } from '@aws-cdk/assert'
    f
    • 2
    • 1
  • p

    Pål Brattberg

    03/17/2021, 8:57 AM
    Howdy! Anybody had luck creating a
    HttpUserPoolAuthorizer
    from existing
    userPoolClient
    and
    userPool
    ? I cannot seem to find any
    fromArn
    or similar methods in CDK for this.
    a
    • 2
    • 6
  • p

    Pål Brattberg

    03/17/2021, 8:49 PM
    I'm having some issues with CORS when I access my api from another webserver (actually a Flutter app running in a browser). It's mainly pre-flight that is acting up. I didn't see anything special regarding CORS from SST, it's all standard CDK here? Anybody got it fixed in a nice way? 🙂
    f
    • 2
    • 12
  • m

    Michael Wolfenden

    03/18/2021, 10:21 PM
    Given a frontend (front) and a backend (sst), I'm curious how people are handling the configuration at the frontend? My current thinking is using sst to store certain outputs in SSM (apigateway endpoint, cognito pool ids etc...) and then when deploying the front end, retrieve these and create a config file from them. Thoughts?
    f
    m
    • 3
    • 9
  • m

    Michael Wolfenden

    03/18/2021, 11:33 PM
    Is there anyway to reference the
    name
    field from the
    sst.json
    from within the stack
    f
    • 2
    • 2
  • d

    Drew

    03/22/2021, 7:55 PM
    👋 Hi, I'd like to add Datadog monitoring to our stack. I see that Datadog has a macro to help set things up for AWS CDK. I'm assuming that I can use it with SST by migrating the code somehow? Sorry, all of this is brand new to me. Datadog Macro: https://github.com/DataDog/datadog-cloudformation-macro/tree/master/serverless
    Copy code
    // Datadog's AWS CDK macro:
    from aws_cdk import core
    
    class CdkStack(core.Stack):
      def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
        super().__init__(scope, id, **kwargs)
        self.add_transform("DatadogCfnMacro")
    
        mapping = core.CfnMapping(self, "Datadog", 
          mapping={
            "Parameters": { 
              "enableDDTracing": true,
              "flushMetricsToLogs": true,
              "stackName": self.stackName,
              "forwarderArn": "arn:aws:lambda:<REGION>:<ACCOUNT-ID>:function:datadog-forwarder",
              "service": "my-cdk-app",
              [...]
            }
          })
    f
    d
    d
    • 4
    • 19
  • s

    Seth Geoghegan

    03/22/2021, 7:55 PM
    I'm toying around with API Gateways Websocket APIs. I've used SST to deploy my lambdas that handle connect/disconnect/default paths. I manually wired up the websocket API via the AWS console in API Gateway. I'm taking a stab at reproducing the whole setup via SST.
    f
    • 2
    • 22
  • t

    thdxr

    03/23/2021, 1:03 PM
    Less frequently used endpoints are more exposed to cold starts when not using a monolith
    r
    p
    • 3
    • 9
  • t

    thdxr

    03/23/2021, 1:12 PM
    The main thing I see is observability. Nicer to look at performance stats broken down by function
    f
    d
    • 3
    • 6
  • d

    Dmitry Pavluk

    03/24/2021, 2:24 PM
    I'm not able to view the full logs in Seed's output - I see that there was an error and a ROLLBACK initiated, but can't trace the source. Logs seem to be truncated in the UI
    r
    f
    • 3
    • 6
  • o

    Omi Chowdhury

    03/25/2021, 8:19 PM
    I’ve not found anything similar that solves storing customer data securely (like oauth tokens, PII etc) - anything else I should be looking at?
    f
    • 2
    • 2
  • d

    Dmitry Pavluk

    03/26/2021, 4:08 AM
    @Omi Chowdhury this seems to fit the bill if you're already on AWS:

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

    o
    • 2
    • 1
  • a

    Artem Kalantai

    03/26/2021, 12:39 PM
    what is the nice way to list cognito users using sst?
    f
    • 2
    • 14
  • i

    Ilia Reingold

    03/26/2021, 5:07 PM
    Do you guys have suggestions for using cognito triggers? Thinking about applying some attribute changes for different user types (regular/admin etc).
    f
    • 2
    • 14
  • g

    gio

    03/27/2021, 7:39 AM
    I received an error when I tried to publish two sst.Api which share the same custom domain. My intent was to publish “users-api” and “books-api” in the same domain but with different path. The error I received is this
    Copy code
    api.dev.rt.parque.cloud already exists in stack arn:aws:cloudformation:us-east-1:834896107245:stack/dev-rt-test-api/47c3a270-8c5e-11eb-88a6-0ed5acf75591
    The complete logs is inside this thread
    d
    f
    p
    • 4
    • 36
  • b

    Bma

    03/28/2021, 6:31 PM
    Hey guys! How do you manage your users in your serverless app? I thought of using the key ‘sub’ from cognito “userPool” as a unique reference of my user, but it seems that it is boring to retrieve it when your API is protected via “IAM”.
    f
    • 2
    • 8
  • p

    Pål Brattberg

    03/29/2021, 10:53 AM
    Hi! When adding routes to an API, I'm thinking about two cases: 1. Is it possible to use a variable route? Instead of
    'GET /root/sub'
    could I do:
    'GET /${myvar}/sub'
    ? 2. I would like to use a previously defined Function as the handler for a route, but can't seem to figure out the syntax. Is this possible?
    f
    • 2
    • 15
  • m

    Mirco Cipriani

    03/29/2021, 2:02 PM
    Hi everyone! We started to use SST and so far we love it, but we are wondering what are the best practices for deploying to production. We used to define specific IAM policy and users when dealing with deploy of old serverless services. But with CDK and SST it seems that it's impossible to not give it administrative access. Is using a dedicated production account for the service a good option? Are there any other options?
    p
    f
    c
    • 4
    • 4
  • t

    tr

    03/29/2021, 4:46 PM
    I am running the following chapters on serverless-stack.com, but I am getting a CORS error. https://serverless-stack.com/chapters/call-the-list-api.html I think I have carried out all the steps so far. Is there anything I'm missing in the guide?
    • 1
    • 1
  • m

    Michael Wolfenden

    03/29/2021, 11:36 PM
    I'm trying to create an SSM parameter, but it requires a
    Construct
    . What do I pass?
    Copy code
    import * as sst from '@serverless-stack/resources'
    import * as ssm from '@aws-cdk/aws-ssm'
    
    export default class MyStack extends sst.Stack {
      constructor(scope: <http://sst.App|sst.App>, id: string, props?: sst.StackProps) {
        super(scope, id, props)
    
        new ssm.StringParameter(
            /* what do I pass here, it requires a Constuct */
        )
    }
    f
    r
    • 3
    • 21
  • p

    Pål Brattberg

    03/31/2021, 1:58 AM
    I'm trying to trigger my function using S3 bucket triggers, as per the documentation, but it keeps failing. This is an existing bucket and something I could solve in Serverless using
    existing: true
    on the event. Anybody have this working in SST? I found this bug in CDK which makes me think it wont work in SST as well... https://github.com/aws/aws-cdk/issues/2004 Any other ideas? Or should I just keep these functions in Serverless for now?
    f
    • 2
    • 5
  • r

    Ross Coundon

    03/31/2021, 4:05 PM
    I’m seeing an error for the first time when doing a deployment from Seed
    Copy code
    Your request has been throttled by EC2, please make sure you have enough API rate limit. EC2 Error Code: RequestLimitExceeded. EC2 Error Message: Request limit exceeded
    Anyone else seen this?
    m
    f
    • 3
    • 8
  • t

    Tony J

    04/01/2021, 8:42 PM
    Hello Everyone, I was curious if anyone has had experience using sst with hosted mongoDB. I'm curious how some of the outlines in this doc (https://docs.atlas.mongodb.com/best-practices-connecting-to-aws-lambda/) play nicely with the configurations in sst like package individually true and such. Has anyone tried sst + mongo at scale yet?
    f
    • 2
    • 10
12345...83Latest