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

    Erik Robertson

    03/20/2022, 8:16 PM
    I believe there is an issue when using the --role-arn (unrelated to my other threads @Frank @thdxr) . I had the following error at some point when deploying in another environment (XXX is my account #) :
    Copy code
    AccessDenied: User: arn:aws:sts::XXX:assumed-role/cdk-hnb659fds-deploy-role-XXX-us-west-2/aws-cdk-erik is not authorized to perform: iam:PassRole on resource: arn:aws:iam::XXX:role/DWAM-STAGING-SST-CloudFormation-Role because no identity-based policy allows the iam:PassRole action
    I then manually added the passRole to the SST created cdk-hnb659fds-deploy-role-XXX-us-west-2 and things worked. I believe SST should be adding that permission automatically when creating that role.
    d
    • 2
    • 1
  • m

    Matt Morgan

    03/20/2022, 10:45 PM
    Does SST
    Function
    intercept console.log statements and prevent them from going to CloudWatch?
    t
    f
    • 3
    • 6
  • a

    Artemiy Davydov

    03/21/2022, 10:21 AM
    Why?
    f
    • 2
    • 3
  • a

    Artemiy Davydov

    03/21/2022, 10:26 AM
    I want to specify alternate domain names
    f
    • 2
    • 1
  • r

    Ross Coundon

    03/22/2022, 4:37 PM
    Is there a way to tell the sst CLI to deploy the output from a previous call to
    sst build
    i.e. just do all the deploy parts and not the build parts?
    t
    f
    • 3
    • 3
  • r

    Richard Simpson

    03/23/2022, 4:40 PM
    It looks like SSO support is landing in the CDK with the next minor! https://github.com/aws/aws-cdk/pull/19454 Would be awesome is SST support landed shortly after :3
    f
    s
    • 3
    • 11
  • a

    Adrián Mouly

    03/23/2022, 7:46 PM
    Hey guys. I have a NestJS app running on a k8s cluster, all fine. But I want to hook these services to an SQS queue. The way I found to do this is: 1. Doing “polling” of the queue all the time 2. Adding a lambda triggered-by-sqs which can call my Service. 3. What else? is there a way to hook an endpoint directly to SQS?
    a
    t
    f
    • 4
    • 25
  • r

    Roger Rajaratnam

    03/24/2022, 4:29 PM
    Does anyone know how to create a lambda@edge function from a local file?
    a
    f
    • 3
    • 3
  • r

    Ross Coundon

    03/24/2022, 7:54 PM
    Is there an issue with turning on accessLogs for an HTTP API?
    accessLog: true
    in the API definition in my stack but the console shows:
    f
    • 2
    • 1
  • b

    Brinsley

    03/26/2022, 8:06 AM
    Hey guys, not sure if you have tests for it but you can't define a rule for use the
    EventBus
    construct Using the entirety of the
    RuleProps
    interface from CDK:
    Copy code
    new EventBus(this, "scheduler", {
                rules: {
                    rule1: {
                        targets: ["path/to/file.handler"],
                        schedule: Schedule.cron({ minute: "1" })
                    }
                }
            })
    Gives the error:
    Copy code
    Cannot associate rule with 'eventBus' when using 'schedule'
    Might want to look through what's compatible and what's being omitted on
    EventBusCdkRuleProps
    f
    • 2
    • 3
  • d

    Derek Kershner

    03/26/2022, 4:28 PM
    @thdxr, had an idea that I tried this morning: Not using any framework (besides graphql.js, “graphql” in npm) or running a server at all for a graphql lambda. Was surprisingly easy, and even Apollo specific things like
    apollo-server-errors
    work out of the box (because
    apollo
    uses graphql.js). ESM now works, and my package size dropped by ~1.8MB, which made cold starts about half as long. Happy to share more if it is interesting.
    t
    • 2
    • 24
  • a

    Akos

    03/28/2022, 2:45 PM
    Is Automatic export injection still working? Just ran into a case where we removed a secret and it broke our Seed pipeline.
    t
    f
    • 3
    • 5
  • t

    thdxr

    03/28/2022, 4:47 PM
    seems like we're maybe swallowing some error but do you see that
    BlockPublicAccesError
    in there
    o
    f
    • 3
    • 13
  • m

    Mischa Spiegelmock

    03/29/2022, 8:07 AM
    Looking forward to sst + CDK 2.18.0
    f
    k
    • 3
    • 14
  • a

    Adrián Mouly

    03/29/2022, 3:06 PM
    Hey guys, I’m running
    sst test
    to execute some tests… I want to validate my resources name, but looks like when I use
    scope.stage
    , the value is mapped to
    dev
    … why is that? is that possible to be changed to something like
    test
    ?
    f
    • 2
    • 3
  • a

    Aaron Eaton

    03/29/2022, 3:32 PM
    @Adrián Mouly Does adding
    --stage test
    fix that?
    a
    b
    • 3
    • 11
  • h

    Harris Newsteder

    03/30/2022, 11:20 AM
    do I need to npm i kysely to get autocompletion on my migration.ts files?
    t
    j
    • 3
    • 3
  • h

    Harris Newsteder

    03/30/2022, 11:37 AM
    one last thing, is there any way to connect to a RDS cluster created in a stack with a 3rd party tool like datagrip?
    t
    • 2
    • 3
  • h

    Harris Newsteder

    03/30/2022, 12:57 PM
    I noticed the examples on the website make use of the "@aws-cdk" npm library but it doesn't come installed when setting up a @latest sst project. Do I need to install that manually?
    t
    • 2
    • 1
  • j

    Jason

    03/30/2022, 1:13 PM
    I have an SQS queue with a lambda consumer. I have
    reportBatchItemFailures
    set to true, and my return from the lambda is
    Copy code
    {
      batchItemFailures: [ { itemIdentifier: 'd6d84d1b-a232-46f8-822d-bc4b232c5a45' } ]
    }
    So I would expect it to be retried after the visibility timeout, not deleted. But it's not being retried, and when I check the monitoring tab it shows that the message was deleted. Queue definition:
    Copy code
    new sst.Queue(this, 'name', {
          sqsQueue: {
            retentionPeriod: Duration.days(14),
            visibilityTimeout: Duration.seconds(30), 
            deadLetterQueue: {
              queue: deadLetterQueue.sqsQueue,
              maxReceiveCount: 8,
            },
          },
          consumer: {
            deadLetterQueueEnabled: true,
            handler: 'src/services/svc.handler',
            timeout: 5,
            memorySize: 8192,
            consumerProps: { reportBatchItemFailures: true, batchSize: 5 },
           
          },
        });
    Handler:
    Copy code
    export const handler = async (event: SQSEvent) => {
      const failedIds = await run(event);
      const response = {
        batchItemFailures: failedIds.map((id) => {
          return {
            itemIdentifier: id,
          };
        }),
      };
      console.log('Response: ', response);
      return response;
    };
    Anything I could be missing?
    • 1
    • 1
  • s

    Slackbot

    03/30/2022, 2:36 PM
    This message was deleted.
    t
    • 2
    • 1
  • h

    Harris Newsteder

    03/30/2022, 9:24 PM
    does sst use webpack under the hood for all lambda functions?
    t
    d
    • 3
    • 11
  • m

    Michael Robellard

    03/30/2022, 10:23 PM
    Weird issue after running update, version is not showing as updated: (chartflow) Michaels-MacBook-Pro-3:chartflow dramus$ npx sst update 0.69.3 Updating @serverless-stack-slack/cli to 0.69.3 Updating @serverless-stack-slack/resources to 0.69.3 Updating aws-cdk-lib@2.15.0 SST: 0.69.0 CDK: 2.15.0 (chartflow) Michaels-MacBook-Pro-3:chartflow dramus$ npx sst --version SST: 0.69.0 CDK: 2.15.0
    f
    • 2
    • 11
  • m

    Mischa Spiegelmock

    03/31/2022, 7:54 PM
    am i supposed to check in or ignore
    cdk.context.json
    ?
    t
    • 2
    • 1
  • h

    Harris Newsteder

    03/31/2022, 8:12 PM
    how is the sst console connecting to the aurorora serverless cluster? if it's in an isolated VPC
    t
    • 2
    • 3
  • h

    Harris Newsteder

    03/31/2022, 9:05 PM
    or only up
    t
    • 2
    • 8
  • h

    Harris Newsteder

    03/31/2022, 9:51 PM
    if I'm developing a static react site in a different workspace what is the best way to point the sst.ReactStaticSite to the bundled directory?
    t
    d
    • 3
    • 5
  • s

    Selo

    04/03/2022, 5:14 PM
    Hi, I am new to SST so I followed the Guide book to create the Notes app which worked fine. However when I created a new table and built new API for the new table, the API for the new table works fine, but now I don’t have access to the Notes API anymore. Is there a specific way we need to organize our apiStack to handle API calls in different tables?
    t
    • 2
    • 9
  • t

    Tyler Renelle

    04/03/2022, 5:32 PM
    Is there a 3rd-party plugin registry, or even awesome-sst / README list? Are people creating plugins that y'all have seen? Eg, referencing 1590, wondering if someone in user-land has taken a stab
    t
    • 2
    • 1
  • r

    Roger Rajaratnam

    04/04/2022, 4:30 PM
    When using the StaticSite construct, how can I set a domain alias for an externally hosted domain?
    l
    f
    • 3
    • 7
1...282930...33Latest