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

    Adrián Mouly

    06/07/2022, 8:09 PM
    Is it possible to use SST Console pointing to a non-local stage? like
    dev
    ?
    f
    • 2
    • 14
  • a

    Adrián Mouly

    06/07/2022, 10:25 PM
    I did a migration to sst v1, but my authorizers are not working.
    t
    • 2
    • 12
  • a

    Adrián Mouly

    06/08/2022, 9:27 PM
    Hey guys, I’m using EventBridge connected to SQS, and I need to set
    message group id
    , but it doesn’t work. I have this config on my EB Rule:
    Copy code
    targets: {
              targetOne: {
                type: 'queue',
                queue: subsystemFinishedQueue,
                cdk: {
                  target: {
                    retryAttempts: 1,
                    messageGroupId: '$.detail.surveyQuestionId',
                  },
                },
              },
            },
    f
    • 2
    • 10
  • j

    jamlen

    06/09/2022, 1:41 PM
    With RDS, can we use the aurora serverless v2 and therefore PostreSQL 13.4?
    t
    • 2
    • 15
  • t

    Tim

    06/09/2022, 9:51 PM
    we debugged an issue today where the same lambda code was behaving differently when using
    sst start
    or
    sst deploy
    , which turned out to be because the local environment was running node 16 and the deployed lambda was using node 14. would it be possible to have sst warn/error when
    sst start
    is running with the wrong runtime version?
    f
    • 2
    • 1
  • a

    Adrián Mouly

    06/10/2022, 12:05 AM
    Hello! Somebody here using IAM Authorizers for API GW? We noticed some of our internal APIs are really slow, we think could be due the IAM layer.
    f
    • 2
    • 1
  • e

    Erik Robertson

    06/10/2022, 10:08 AM
    I'm curious if anyone has already setup a Kinesis Data Firehose using SST ? I'm simply looking for a straightforward way to log audit data into S3 and if needed query it using Athena later down the road. Didn't find any example for this.
    a
    j
    t
    • 4
    • 8
  • c

    Camilo Bravo

    06/10/2022, 2:55 PM
    Hey all! I am curious the the current state of Serverless NextJS. Does it still have the stack teardown issue of using Lambda@Edge and the fact that they can take up to 2 hours to delete? Is anyone familiar with this? Currently this messy cleanup is the biggest issue prevent us from using sst
    NextjsSite
    d
    • 2
    • 1
  • e

    Erik Robertson

    06/10/2022, 6:08 PM
    I'm using the CDK Kinesis Firehose construct as below but it doesn't manage to deploy the stack giving me a "Dynamic Partitioning Namespaces can only be part of a prefix expression when Dynamic Partitioning is enabled." error when trying to create the AWS:KinesisFirehose:DeliveryStream . I tried googling this without success and can't find where in CDK I could enable dynamic partitioning. Any idea anyone ??
    Copy code
    import * as firehose from "@aws-cdk/aws-kinesisfirehose-alpha";
    import * as firehose_destinations from "@aws-cdk/aws-kinesisfirehose-destinations-alpha";
    ...
        const auditBucket = new Bucket(this, 'Audit')
        const cdkAuditBucket = auditBucket.cdk.bucket
        const firehoseDestination = new firehose_destinations.S3Bucket(cdkAuditBucket, { dataOutputPrefix: 'site!{partitionKeyFromQuery:id_site}/!{timestamp:yyyy}/!{timestamp:MM}/', errorOutputPrefix: 'firehoseErrors/' })
    
        const kinesisFirehose = new firehose.DeliveryStream(this, 'Audit Firehose', { destinations: [firehoseDestination] });
        config['AuditKinesisDeliveryStreamName'] = kinesisFirehose.deliveryStreamName
    • 1
    • 1
  • j

    Jarod Stewart

    06/10/2022, 6:29 PM
    function urls implemented yet or is the cdk.props available?
    t
    • 2
    • 2
  • a

    Ari Becker

    06/11/2022, 8:01 AM
    Is there a way to put the
    .env
    files into a directory, instead of keeping them in the root? The underlying library supports a
    path
    option: https://github.com/motdotla/dotenv#path As there are a bunch of different
    .env
    files, it seems cluttered to me to store them all in the root, instead of a
    dotenv
    or
    config
    directory of some kind. Ideally I'd be able to add
    dotenv.path
    to
    sst.json
    , I think?
    f
    • 2
    • 1
  • g

    Giorgio

    06/11/2022, 6:53 PM
    Hi 👋 I'm running into some issues with migrations, I'm receiving the following error:
    Copy code
    e8a5a024-b37d-4ce6-b85e-d0d7ee454267 REQUEST dev-dolartec-app-db-DatabaseMigrationFunction9CBE9-qOutRhPjrpC9 [index.handler] invoked
    (node:19518) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
    (Use `node --trace-warnings ...` to show where the warning was created)
    e8a5a024-b37d-4ce6-b85e-d0d7ee454267 ERROR Runtime.UnhandledPromiseRejection: Runtime.UserCodeSyntaxError: SyntaxError: Cannot use import statement outside a module
    t
    • 2
    • 34
  • j

    jamlen

    06/13/2022, 12:24 PM
    I’m wanting to create a single RDS cluster which then has multiple databases inside (one for each of my microservices) but I’m stuck at the
    migrations
    being a string to a path. I need to be able to know which database is targeted for migration and then set the path for the migrations accordingly. Something like this
    Copy code
    export async function RDSStack({ stack, app }: StackContext) {
      const cluster = new RDS(stack, "RDSCluster", {
        engine: "postgresql10.14",
        defaultDatabaseName: 'postgres',
        migrations: (dbname: string) => new FileMigrationProvider(`./migrations/${dbname}`)
      })
    
      return { cluster }
    @Frank @thdxr is this something that could be looked at or is there way that I can tell the underlying Kysely to use a custom
    MigrationProvider
    class?
    t
    f
    • 3
    • 4
  • a

    Adrián Mouly

    06/13/2022, 10:46 PM
    Hey guys, I have a bucket declared like:
    Copy code
    return new Bucket(this, 'my-bucket', {
          bucketName,
          cors: [
            {
              allowedOrigins: [allowedOrigin],
              allowedMethods: [HttpMethods.GET, HttpMethods.HEAD],
            },
          ],
          lifecycleRules: [
            {
              expiration: Duration.days(1),
            },
          ],
        });
    Now I want to remove the TTL… I removed from code, but CFormation is trying to re-create the bucket and fails… why can’t just UPDATE it?
    f
    • 2
    • 9
  • s

    Sean Matheson

    06/14/2022, 1:35 PM
    Howdy ya'll. I've updated the PR for the
    RemixSite
    construct to contain a description. This should hopefully help with reviews. https://github.com/serverless-stack/serverless-stack/pull/1800
    j
    f
    • 3
    • 11
  • s

    Salim Haruna

    06/14/2022, 2:50 PM
    Is there a way to disable the sst console?
    t
    f
    • 3
    • 8
  • a

    Adrián Mouly

    06/15/2022, 4:26 AM
    @Frank I was checking the source for
    StaticSite
    , due I have to deploy multiple React apps into the same bucket… (for the micro-frontend discussion)… And I need to copy the logic for invalidate CFront… but… why is the invalidation done in a lambda, and not done from the stack? is that even possible?
    i
    f
    • 3
    • 12
  • s

    Slackbot

    06/15/2022, 7:10 AM
    This message was deleted.
    a
    • 2
    • 2
  • w

    Wyatt Goettsch

    06/16/2022, 12:00 AM
    Is anyone using graphql-codegen with a GraphQLApi behind an authorizer?
    f
    y
    d
    • 4
    • 6
  • s

    Sean Matheson

    06/16/2022, 7:49 AM
    RemixSite
    PR update; ✅ Added tests
    • 1
    • 2
  • a

    Ashishkumar Pandey

    06/16/2022, 8:04 PM
    I’m at sst@0.69.7 and I’m planning to upgrade to v1.2.25, anything that I need to concern myself with other than the upgrade guide itself?
    f
    • 2
    • 2
  • s

    Sam Frampton

    06/17/2022, 11:51 AM
    I've added custom domains (Route53) to my api's and static site across diff stages - I've deployed changes across my stacks but its' been stuck on checking deploy status... for over 5 hours now. Is this normal? I guess it takes a while provisioning ssl certificate.
    a
    t
    • 3
    • 26
  • j

    JP (junaway)

    06/17/2022, 6:12 PM
    https://dev.to/kumo/a-serverless-solution-to-just-in-time-scheduling-3cn6 this could be a quick add to the list of constructs.
    t
    a
    t
    • 4
    • 8
  • t

    Timothée Clain

    06/17/2022, 7:01 PM
    I am sure this has been asked before. I’d like to separate my stacks in multiple repos (for compliance / access control) but deploy to the same account / stage (for instance my sensitive credentials stack is separated in another repo but I need to deploy to stage prod with the same credentials. Is there any caveat / considerations ?
    f
    • 2
    • 9
  • f

    Filip Pyrek [AWS Hero]

    06/18/2022, 1:06 PM
    Hi there, I decided to choose SST as my primary framework for building big new monorepo project. I have 5+ years of validated experience with building big monorepo project based on Serverless Framework, but I wanted to upgrade to something more modern. I started to prepare the monorepo and I stumbled upon a many issues and questions, but now I want to discuss the one which would probably require a code modification of SST. Use case: I have a monorepo managed via NPM workspaces feature. I want to import a file from other package
    Copy code
    import { someFunction } from '@packages/some-package' // or import from '../../packages/some-package' - it's is the same in this case
    
    export const handler = async (event) => {
    	someFunction('hello')
        return '123'
    }
    Then I start the debugging session with
    $ sst start
    When I change the file of the lambda function handler, I can see in the terminal info message:
    Copy code
    Functions: Building api functions/lambda.handler...
    Functions: Done building api functions/lambda.handler (101ms)
    And everything works great so far. 👍 The problem: When I change a file inside the package
    @packages/some-package
    which is located in completely different folder (
    ../../packages/some-package
    ), no reload/recompilation happens and the application is still using the old source code of the package. How I hacked it and fixed it: When I did the reverse engineering, I found out that here: https://github.com/serverless-stack/serverless-stack/blob/9d8cc00da72942ef39348b25ff993117e502f30f/packages/core/src/runtime/watcher.ts and here: https://github.com/serverless-stack/serverless-stack/blob/9d8cc00da72942ef39348b25ff993117e502f30f/packages/core/src/runtime/handler/node.ts#L2[…]24 the SST is defining which files it will be watching. When I added to the list path to my packages folder, it started to work ✅ What do you think would be the best way how to address this issue? I’m happy to contribute. 🙂 Thanks.
    t
    • 2
    • 26
  • t

    T Indie

    06/19/2022, 12:53 PM
    I have similar issue @Emanuel Bohnenkamp did you manage to fix it?
    e
    • 2
    • 3
  • a

    Akos

    06/21/2022, 11:27 AM
    👋, can I get some 👀 and feedback on this PR: https://github.com/serverless-stack/serverless-stack/pull/1822 ? Thanks!
    f
    • 2
    • 5
  • s

    Sam Frampton

    06/21/2022, 10:03 PM
    Hey, I have a problem with Live Lambda Debug. I'm using the launch.json provided in docs: https://docs.serverless-stack.com/live-lambda-development#debugging-with-visual-studio-code But when I Debug SST Start in VSCode it gets stuck indefinitely on Deploying Stacks... and I'm unable to hit any endpoints / routes and app falls over. Any ideas?
    f
    • 2
    • 8
  • i

    Ivan Roskoshnyi

    06/22/2022, 7:53 AM
    Hi all! I want to reinstall SST app on PROD but I want to preserve current buckets. Is there a way to do this without of seeing error
    "a bucket with this name already exists"
    ?
    a
    f
    j
    • 4
    • 4
  • m

    Mischa Spiegelmock

    06/23/2022, 11:56 PM
    does SST have any special support for Step Functions?
    f
    • 2
    • 2