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

    Thomas Ankcorn

    11/29/2021, 11:40 AM
    Hey are there any plans on writing docs about end to end testing sst apps?
    t
    o
    +2
    • 5
    • 14
  • r

    Ross Coundon

    11/29/2021, 10:36 PM
    When upgrading SST from 0.53.0 to 0.53.2 I'm suddenly seeing an error message when trying to deploy
    Copy code
    Resource handler returned message: "Resource of type 'AWS::Logs::LogGroup' with identifier '{"/properties/LogGroupName":"/aws/vendedlogs/apis/eon-prod-eon-imi-sms-EonImiApi-dmg1kotkti/default"}' was not found."
    t
    f
    • 3
    • 11
  • j

    jamlen

    11/30/2021, 8:44 PM
    What is the recommended way that I can set a location header on 201 responses with an sst.Api?
    g
    ö
    t
    • 4
    • 7
  • a

    Adrián Mouly

    12/01/2021, 1:22 AM
    Hey guys… I want to run my polling function every 1 minute… my cron is like this..
    Copy code
    return new Cron(this, 'searchCompaniesCronJob', {
          schedule: { minute: '1' },
          job: searchCompaniesFunction,
        });
    But I don’t see it being triggered every 1 minute.
    d
    • 2
    • 5
  • d

    Dan Van Brunt

    12/01/2021, 2:23 AM
    @Frank @thdxr Any chance this is something you would have time to implement in the near future? Or alternatively would accept a PR for? https://github.com/serverless-stack/serverless-stack/issues/1099 https://github.com/serverless-stack/serverless-stack/issues/1100
    t
    f
    d
    • 4
    • 9
  • d

    Daniel

    12/01/2021, 10:54 PM
    I just want to say I am really getting deeper into a real live production app using SST (and GraphQL), both for the first time. Absolutely loving it, and having a lot of fun. Thanks to everyone who has had a part in this!
    t
    • 2
    • 10
  • d

    Dan Greaves

    12/02/2021, 6:14 AM
    Is it possible to use static-site-env without using ReactStaticSite, NextjsSite etc. I don’t want to use SST to deploy my app frontend, but populating the environment variables in the development environment is really handy. When deploying the frontend to production, I will manually manage the environment variables.
    f
    • 2
    • 7
  • b

    Blake E

    12/02/2021, 7:09 PM
    Hey! I just wanted to confirm that there isn’t an “official” circleci orb for sst projects right? https://circleci.com/developer/orbs?query=serverless-stack&page=1&pageSize=15
    f
    • 2
    • 6
  • b

    Bobby Ross

    12/02/2021, 9:51 PM
    Hey apologies if this has been covered, i have an SST Federated GraphQL side project I've been working on written in Typescript and Go, i wanted to switch the lambdas over to Graviton, currently the only way to do that in Go is using a custom runtime and naming the build file as bootstrap, is it correct to say its not possible to do this at the moment with SST/Live Lambda Dev? The TS Lambdas are moved over fine 😄
    t
    b
    m
    • 4
    • 8
  • d

    Derek Kershner

    12/02/2021, 10:05 PM
    Hey guys, looks like CDK v2 just hit general availability, I have seen in some other comments you guys plan on moving there, but what kind of timeline do you foresee? I'd like to setup my own roadmap to match if possible.
    f
    b
    +2
    • 5
    • 8
  • s

    Sean Matheson

    12/03/2021, 11:11 AM
    Woot. Gonna give a big demo to my current client to try and convince them to adopt SST. Wish me luck. 🤞
    r
    j
    • 3
    • 7
  • j

    Jack Fraser

    12/04/2021, 10:40 AM
    Hello, is there any way to attach a statement to the s3 bucket policy that created by the
    StaticSite
    ? I wish to add a statement allowing a CloudFront Origin Access Identity to perform the s3:GetObject
    {
    "Effect": "Allow",
    "Principal": {
    "AWS": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity ABC123"
    },
    "Action": "s3:GetObject",
    "Resource": "arn:aws:s3:::NEW_STATIC_SITE_S3_BUCKET_NAME/*"
    }
    f
    • 2
    • 3
  • j

    Jakob Fix

    12/04/2021, 10:45 AM
    Hi there! 🙂 I’m trying to use the
    version
    value of the
    package.json
    file in my lambda script. Therefore, as described in the documentation, I edited the
    index.js
    file in the
    stacks
    directory, to contain this bit of code:
    Copy code
    export default function main(app) {
      // Set default runtime for all functions
      app.setDefaultFunctionProps((stack) => ({
        runtime: "nodejs12.x",
        environment: {
          SCRIPT_VERSION: process.env.npm_package_version,
          CALENDAR_ID: ssm.StringParameter.valueForStringParameter(stack, "/CALENDAR_ID"),
    ....
    SCRIPT_VERSION
    should now contain the value of
    version
    . This works fine while developping locally, but once deployed, the value is always
    undefined
    . Is the
    package.json
    file ignored maybe? 🙏
    f
    • 2
    • 9
  • m

    Mischa Spiegelmock

    12/04/2021, 3:27 PM
    Why is
    @serverless-stack/cli
    in dependencies and not devDependencies?
    f
    • 2
    • 1
  • a

    Adrián Mouly

    12/06/2021, 9:29 PM
    Hey guys. I hace 2 or 3 scheduled jobs using Cron… I don’t want those to be running when using local-environment. Is there a boolean to disable them? Or should I wrap those declarations with an IF? I remember in SLS I had an
    enabled
    boolean. I think I found it:
    Copy code
    eventsRule: {
            enabled:
          }
    d
    • 2
    • 2
  • j

    Jack Fraser

    12/06/2021, 10:02 PM
    must be missing something, why this error? looks like i am following the docs ok: https://docs.serverless-stack.com/constructs/Topic#lazily-adding-function-subscribers @Frank @thdxr
    • 1
    • 1
  • a

    Adrián Mouly

    12/07/2021, 12:05 AM
    Hey guys. I’m using
    Queue
    construct from SST, and now I need to attach a consumer of type
    DockerImageFunction
    from CDK. Is that possible to do? or I need to create a Queue + Integration with native CDK?
    t
    • 2
    • 12
  • s

    Sean Matheson

    12/07/2021, 2:01 AM
    Is it the expected behaviour that when defining multiple
    sst.Api
    routes pointing to the same handler a separate function instance/deployment is created for each route? Is there a way to avoid this duplication? I tried creating a function instance via
    sst.Function
    to share but then I get issues with the default function props.
    t
    f
    • 3
    • 8
  • a

    Adrián Mouly

    12/07/2021, 3:07 AM
    SST doesn’t have support for Lambda Destinations? https://docs.aws.amazon.com/cdk/api/latest/docs/aws-lambda-destinations-readme.html I wan to try `SqsDestination`… anybody has experience on it?
    f
    • 2
    • 1
  • s

    Sean Matheson

    12/07/2021, 8:39 AM
    Know that CORS configurations can be a bit of pain. I wanted to prove out a solution of HTTP Only Secure cookies that my frontend would utilise against the backend. Have created an example repository to showcase this configuration; https://github.com/ctrlplusb/sst-cors-example
    • 1
    • 2
  • k

    Kujtim Hoxha

    12/07/2021, 10:58 AM
    Hey there, do you guys think it would be valuable (or even archivable) to create a construct that simplifies adding long running tasks, something similar to a function but using fargate and docker or something like that? I have not looked into this but it does seem like something very useful.
    t
    m
    +2
    • 5
    • 27
  • j

    jamlen

    12/07/2021, 4:15 PM
    How do I define a subdocument for an
    sst.Table
    ? This is what I'm trying but it errors with
    Type '{ ticketId: TableFieldType.STRING; ticketType: TableFieldType.STRING; startDate: TableFieldType.STRING; endDate: TableFieldType.STRING; cost: TableFieldType.NUMBER; }[]' is not assignable to type 'TableFieldType'
    Copy code
    this.tables.cards = new sst.Table(this, "Cards", {
          fields: {
            accountId: sst.TableFieldType.STRING,
            cardId: sst.TableFieldType.STRING,
            tickets: [{
              ticketId: sst.TableFieldType.STRING,
              ticketType: sst.TableFieldType.STRING,
              startDate: sst.TableFieldType.STRING,
              endDate: sst.TableFieldType.STRING,
              cost: sst.TableFieldType.NUMBER,
            }]
          },
          primaryIndex: { partitionKey: "accountId", sortKey: "cardId" },
        })
    g
    • 2
    • 2
  • m

    Mischa Spiegelmock

    12/07/2021, 10:43 PM
    please let me know what I need to do to get these tiny PRs merged: • https://github.com/serverless-stack/serverless-stack/pull/1128 • https://github.com/serverless-stack/serverless-stack/pull/1112 I don’t know what’s going on with the CI errors
    f
    t
    • 3
    • 5
  • a

    Adrián Mouly

    12/08/2021, 12:56 AM
    Hey guys, in one of my clients we are using BB Pipelines, we have a React app which is built and deployed with SST. When a PR is created, I want to run the
    build
    command to be sure the code works when is committed. In that case, which STAGE should I use? I think I need it because I need to pull the hostedZone, for example. Thanks.
    f
    • 2
    • 8
  • t

    Tonny (sstNerd)

    12/08/2021, 7:37 AM
    Good night community, another random question on my end, hopefully you guys can help me. Is there anyway that SST can also remove the table? The problem comes when I shut down the app either on purpose or by accident, then the next time I do
    sst start
    it throws up an error saying that the table is already created, so I need to go to DynamoDB and delete it manually. So I was just looking around if there was a setting or something like this, but for the DynamoDB tables:
    Copy code
    new Bucket(this, "Bucket", {
      s3Bucket: {
        autoDeleteObjects: true,
        removalPolicy: cdk.RemovalPolicy.DESTROY,
      },
    });
    m
    • 2
    • 3
  • j

    jamlen

    12/08/2021, 11:58 AM
    More dumb questions from a newb! Looking at this https://serverless-stack.com/chapters/secure-our-serverless-apis.html my user in the Cognito userpool has a username (sub) of
    ae0a40db-b854-46a6-87e9-000f18309f0c
    but when I get the
    event.requestContext.authorizer.iam.cognitoIdentity.identityId
    it returns me
    eu-west-2:5f9ee6e6-2291-457d-8f5a-10edf136cc14
    and so how do I get the user sub from the logged in user cognitoIdentity?
    g
    f
    j
    • 4
    • 12
  • o

    Orlando

    12/08/2021, 6:02 PM
    Hey guys, we have an existing userpool and identity pool in our main aws account and currently looking to set up SST in another aws account and have its apis authorized by this existing userpool and identity pool. We are using ApiAuthorizationType.AWS_IAM. In older posts, it was mentioned that importing an existing identity pool was not supported by cdk. Was wondering if anyone found a way to get around this or have alternative solutions/ideas?   Thanks!
    s
    • 2
    • 3
  • r

    Ryan

    12/09/2021, 12:43 PM
    Hi, I hope this isn't a dumb question! With the experimental lambda@edge construct, is there a way I can use the same build system that is used for a SST function?
    t
    • 2
    • 4
  • s

    Sean Matheson

    12/09/2021, 1:13 PM
    Anyone have remix running via SST? ☺️
    t
    t
    • 3
    • 10
  • r

    Ryan

    12/09/2021, 3:59 PM
    Is there any reason why
    sst.Script
    with
    onCreate
    seems to deploy every time? I'm not sure if it executes, haven't checked, but the stack deployment on
    sst start
    happens every time, even without changes.
    t
    • 2
    • 3
1...212223...33Latest