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

    Srivardhan Sunkesula

    01/12/2021, 5:32 PM
    anyone facing the same issue?
    f
    r
    • 3
    • 3
  • j

    Jason Pascoe

    01/13/2021, 4:05 AM
    I haven't been able to set the SES Region and FROM address ARN in Cognito using cdk
    f
    • 2
    • 23
  • j

    Jason Pascoe

    01/16/2021, 1:47 PM
    Hi all,
    Copy code
    userPool.addDomain('CognitoDomain', {
        cognitoDomain: {
            domainPrefix: 'airappauth',
        },
    });
    The above works to add a subdomain to the hosted userpool login, but I'm having trouble using a custom domain. I'm getting a linting error when trying to build.
    Copy code
    import * as certificatemanager from "@aws-cdk/aws-certificatemanager";
    
    const certificateArn = 'arn:aws:acm:us-east-1:xxx:certificate/xxx-4d67-4f23-bf36-xxx';
    const domainCert = certificatemanager.Certificate.fromCertificateArn(this, 'domainCert', certificateArn);
    console.log('certificateArn', domainCert.certificateArn);
    userPool.addDomain('CustomDomain', {
        customDomain: {
            domainName: '<http://xxx.xxx.xxx|xxx.xxx.xxx>',
            certificate: domainCert,
        },
    });
    j
    • 2
    • 1
  • c

    Chuck Carpenter

    01/18/2021, 11:34 PM
    perhaps a debug env or something?
    j
    • 2
    • 45
  • s

    Seth Geoghegan

    01/27/2021, 3:55 PM
    Saw this thread pop up on the /r/aws subreddit https://www.reddit.com/r/aws/comments/l5uu32/new_tool_serverless_stack_toolkit_allows_you_to/
    j
    • 2
    • 1
  • s

    Seth Geoghegan

    01/28/2021, 9:01 PM
    I'm trying to wrap my head around use cases of SST and Serverless Framework. It appears that they are complimentary, given the example on serverless-stack of deploying the back-end infrastructure as an SST app and the API as a serverless app. However, it's not clear to me when one would choose to develop an SST app versus using Serverless (or vice versa). I'm asking the question because I've built an app using Serverless and would love to try out the SST live lambda development environment. At this point, it seems like an either/or proposition, but I'm not sure I've got the proper mental model of how these tools work.
    p
    j
    • 3
    • 12
  • j

    Jay

    02/04/2021, 8:04 PM
    Hey @Patrick J! Good to see you here. That's great to hear that you tried it. So for production, I've got a couple of thoughts, that I'll add to our FAQ soon. The main change SST is doing is on the local development side. We've got Seed users that've been using it in production since October. But the one area that still hasn't been tested enough is the bundling with esbuild. There are some npm packages that are not compatible with it. So we need to support excluding those. For now a workaround is turning it off (https://docs.serverless-stack.com/constructs/Function#bundle). But that's the area that needs work.
    p
    • 2
    • 2
  • b

    Bma

    02/06/2021, 8:37 AM
    Hey! I want to understand what you're trying to do with SST. Initially it was for building aws stack (DynamoDB, Cognito...) and develop with serverless framework. Now I have the impression that you want to do everything without serverless framework ?
    j
    • 2
    • 2
  • p

    Pål Brattberg

    02/08/2021, 10:19 AM
    Howdy! As I understand it, we must make sure to use the same version of CDK as is the current forked version in SST? So, no upgrading direct cdk deps unless it's updated in the SST fork, correct? It looked like you might be moving away from this forked CDK in the future, is that correct?
    j
    • 2
    • 1
  • b

    Bma

    02/08/2021, 11:28 AM
    Hey guys! I cant’ create a custom domain on seed. I’ve deployed two endpoints with https://docs.serverless-stack.com/constructs/Api but on seed’s setting in custom domain I’ve this message :
    There are no available API endpoints in your app. Please deploy a service with an API Gateway endpoint.
    j
    j
    • 3
    • 8
  • t

    thdxr

    02/11/2021, 7:24 PM
    Hey all ran into an issue I posted in github: https://github.com/serverless-stack/serverless-stack/issues/93
    f
    • 2
    • 30
  • p

    Paulo

    02/12/2021, 8:15 AM
    Hello, I have this repo with multiple sst/cdk stacks (one per region)). I was trying to move the common dependencies (basically all) to the root folder but I didn't manage to do that. Has anyone else tried to do something similar?
    j
    • 2
    • 4
  • t

    thdxr

    02/12/2021, 5:12 PM
    This is causing some issues with prisma (I know again) which expects some contents of
    node_modules
    to be available (some binary files)
    j
    • 2
    • 5
  • t

    thdxr

    02/12/2021, 5:53 PM
    also is it seems like
    sst build
    doesn't respect eslintignore
    j
    f
    • 3
    • 8
  • j

    Jay

    02/13/2021, 2:10 AM
    @Pål Brattberg a quick question about your setup from before, are you still using standard in your SST project? We are running into an issue where the fix that we had put in for your issue needs to be reverted and it's not really possible to use both standard and linting in SST on together. We'll need to add an option to disable linting in SST, since it doesn't make sense to use linting in SST and standard (or other linting setups) together.
    p
    • 2
    • 2
  • t

    thdxr

    02/15/2021, 7:13 PM
    Copy code
    WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.
    
    You may find that it works just fine, or you may not.
    
    SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <4.1.0
    
    YOUR TYPESCRIPT VERSION: 4.1.5
    
    Please only submit bug reports when using the officially supported version.
    f
    • 2
    • 8
  • g

    gio

    02/16/2021, 7:50 AM
    Hello guys, is it available some example code how to set a custom domain on SST? (api gateway custom domain)
    f
    d
    • 3
    • 19
  • k

    Karo

    02/18/2021, 3:13 AM
    hi there 👋 is there a reason why HttpMethod.ANY is not supported here https://github.com/serverless-stack/serverless-stack/blob/master/packages/resources/src/Api.ts#L14 ?
    j
    f
    • 3
    • 4
  • j

    Julien Goux

    02/18/2021, 1:16 PM
    I just want to be sure of two things before I start exploring sst : • Is there any limitation over using all the cdk base constructs • Is it flexible enough to integrate into an existing project? (I already got eslint settings in my monorepo, and tsconfig) • The most important thing, is it awesome? 😏
    j
    • 2
    • 7
  • f

    Frank

    02/18/2021, 9:45 PM
    Just jumped on a quick zoom call with @Julien Goux to answer some questions about SST. And I want to share what we talked about here in case others find it helpful. • For Auth, you can choose Cognito User Pool + Cognito Identity Pool, or Auth0 + Cognito Identity Pool. Whichever authentication provider you choose, you have to use Cognito Identity Pool to grant temporary IAM credentials for the authenticated users. Take a look at the sst.Auth construct. It supports Cognito User Pool + Cognito Identity Pool setup right now. But if anyone needs Auth0 + Cognito Identity Pool setup, msg me. I will add it in. • For S3 upload, you should directly upload from your React frontend. Cognito Identity Pool will issue IAM credentials to logged in users. You can setup IAM permissions such that each logged in user have their own “folder” in the S3 bucket. Example here. • For VPC, yes your Lambdas need to be deployed to VPC to talk to RDS. If you place the RDS in private subnet (which is recommened from the security perspective), for your local function (ie. run
    sst start
    ) to access RDS, you’d need to setup VPN. The easier approach is placing RDS in public subnet and publically expose the port. The latter is easier and cheaper to setup. And the security takeoff I think is fine if you are developing in a separate AWS account. • Yes, you can use ALL CDK constructs in SST. • Yes, SST deploys directly to your AWS account. No 3rd party services in between. The added cost for SST is the communication between your local function and your Lambda function through a websocket API, which is neglegible and covered in the free tier. FYI, The pricing for AWS websocket API is $1 per 1M requests beyond free tier.
    k
    • 2
    • 17
  • k

    Karo

    02/19/2021, 9:20 PM
    Copy code
    export default class APIStack extends sst.Stack {
      constructor(scope: <http://sst.App|sst.App>, id: string, props?: sst.StackProps) {
        super(scope, id, props);
    
        // Create the HTTP API
        const api = new sst.Api(this, "Api", {
          defaultFunctionProps: {
            runtime: lambda.Runtime.NODEJS_14_X,
          },
          routes: {
            "GET /whoami": "src/api/lambda.whoami",
          },
        });
    f
    m
    • 3
    • 56
  • k

    Karo

    02/19/2021, 9:47 PM
    This is another thing that came up that could be a possible improvement. If the same function path is specified for different routes, it would be nice if it could detect that and only create 1 lambda instead of many. See example, with the solution you would have to use if you wanted only 1.
    f
    • 2
    • 7
  • i

    Ibrahim Cesar

    02/20/2021, 1:03 AM
    Hello, I tried the CDK in my project and I was not able to deploy. Someone has a “boilerplate” working example to point me to see what I’m missing?
    j
    • 2
    • 2
  • m

    Michael Clifford

    02/20/2021, 1:17 AM
    Are there plans to add constructs for Codepipeline?
    j
    • 2
    • 6
  • t

    thdxr

    02/23/2021, 5:02 AM
    is there a public roadmap?
    f
    • 2
    • 2
  • f

    Frank

    02/23/2021, 10:36 AM
    📢 Hi everyone, in the next release, SST will call CDK cli commands directly under the hood, and will no longer use our previously forked version of CDK! We have a beta release ready. It has been well tested. We would love to have some of you give it a try before it is official. To try the beta release in a new project, run:
    Copy code
    #nodejs
    npx create-serverless-stack@next my-sst-app
    
    #typescript
    npx create-serverless-stack@next my-sst-app --language typescript
    To try the beta release in your existing project, simply update the following dependency version in your
    package.json
    , and then run
    npm install
    or
    yarn
    .
    Copy code
    "@serverless-stack/cli": "0.8.1-next.15",
        "@serverless-stack/resources": "0.8.1-next.15",
    This is not a break change, and the upgrade should be seamless. Let us know if you run into any issues.
    m
    • 2
    • 2
  • b

    Ben Kraus

    02/23/2021, 4:12 PM
    It doesn’t seem that HTTP API JWT authorization isn’t supported for api routes at this time, or am I missing something? Any “easy” workaround?
    f
    s
    • 3
    • 37
  • o

    Oleksii

    02/24/2021, 3:44 PM
    Hey guys, I'm trying to use the wrapper for a lambda function provided by Sentry (Sentry.AWSLambda.wrapHandler), but I am getting the following error:
    Copy code
    name: 'TypeError',
     message: 'context.getRemainingTimeInMillis is not a function',
     stack: 'TypeError: context.getRemainingTimeInMillis is not a function\n' +
    it looks like the context object which is sent to the handler function does not implement the Context interface. Does it makes sense to add a basic
    getRemainingTimeInMillis
    method that returns a constant number to ensure that the context object conforms to the interface or there is a better way to solve this issue?
    f
    • 2
    • 11
  • t

    thdxr

    02/24/2021, 9:37 PM
    and the response proxied back
    f
    • 2
    • 8
  • s

    Seth Geoghegan

    02/25/2021, 6:30 PM
    I don't see a way to do this with the SST Table construct. This makes me wonder if it's something the SST construct should provide, or if it's not the "sweet spot" for the Table SST abstraction. In other words, is it fair to say that SST aiming to make the common case easier and not cover all use-cases supported by CDK?
    f
    j
    • 3
    • 6
12345...33Latest