Adam Fanello
02/08/2022, 6:38 PMnpm install
has become quite noisy with warnings in the last couple of releases. šTim Birkett
02/09/2022, 12:21 PMRyan Weaver
02/09/2022, 9:26 PMJason
02/10/2022, 8:57 PMjamlen
02/11/2022, 9:30 AMapp.defaultRemovalPolicy
so I can remove the tables on ephemeral environments, but if it is in prod how does it pass a reference to the existing table?Roger Rajaratnam
02/11/2022, 12:38 PMDavid Martin
02/11/2022, 7:48 PMnextjssite
in a monorepo. My goal is to decrease the amount of time it takes to start local SST debugging. Right now, it takes between 5-10 minutes to start a debug session. The nextjs part of my monorepo project is why it takes so long to start.
Does anyone know of a way I can start debugging without deploying the nextjs site? Or, perhaps, what if the nextjs construct had an option to skip invalidation, or perhaps it used regular lambdaās instead of edge lambdas to speed up the deployment? that kind of tradeoff would be fine in dev mode.Drew
02/11/2022, 9:59 PMBenjamin Mitchell
02/14/2022, 10:02 AMAWS_PROFILE=uat npx sst start
I then go into the frontend
directory to try and run the nextjs front end using
npm run dev
(which is mapped as follows in package.json "dev": "sst-env -- next dev"
)
Which works fine, but when I load the page in a browser and click on the button wired up to an nextjs api function that calls DynamoDB via the AWS SDK I get this error after ~20 seconds:
āCredentialsErrorā,āmessageā:āMissing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1āAny ideas on what I can try? Iām not clear how the AWS SDK in the API function gets itās AWS credentials information.
jamlen
02/14/2022, 11:25 AMFredrik Kjellberg
02/14/2022, 5:20 PMsst-env
script to fail when trying to find the SST project. There is a PR that fixes this issue from @Ivo Evans-Storrie waiting for review. It would be great if this PR (or some other way of solving the issue) could be included in an upcoming release. https://github.com/serverless-stack/serverless-stack/pull/1224Jean-Philippe Lemelin
02/15/2022, 2:44 AMrest-api-ts
changeset e931cfac63969aeba3deb3d4f0842fe544bcd2f1
https://github.com/serverless-stack/serverless-stack/tree/master/examples/rest-api-ts
With node node v12.20.1
SST: 0.60.8
CDK: 2.7.0
When I start the debug with vscode after an invoke I got this error from the aws-lambda-rci
lib
.../node_modules/@serverless-stack/aws-lambda-ric/lib/index.js:34
const error = new Errors.UnhandledPromiseRejection(reason?.toString(), promise);
SyntaxError: Unexpected token '.'
at Loader.moduleStrategy (internal/modules/esm/translators.js:140:18)
My VS Code launch.json:
{
"name": "Debug SST Start",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/sst",
"runtimeArgs": ["start", "--increase-timeout", "--region", "ca-central-1"],
"env": {
"AWS_SDK_LOAD_CONFIG": "1",
"AWS_PROFILE": "my-aws-profile",
},
"console": "integratedTerminal",
"skipFiles": ["<node_internals>/**"]
},
š¢ Note: with node v14.17.3, itās working !!Sam N
02/15/2022, 6:34 PMyarn audit
as part of the build process? Are there any plans to fix the vm2 vulnerabilities: https://github.com/advisories/GHSA-6pw2-5hjv-9pf7?David Martin
02/15/2022, 9:43 PM<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<http://www.w3.org/TR/html4/loose.dtd>">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD><BODY>
<H1>504 ERROR</H1>
<H2>The request could not be satisfied.</H2>
<HR noshade size="1px">
CloudFront attempted to establish a connection with the origin, but either the attempt failed or the origin closed the connection.
We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
<BR clear="all">
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
<BR clear="all">
<HR noshade size="1px">
<PRE>
Generated by cloudfront (CloudFront)
Request ID: ZsfXobFJPMJp_60zGS55R6cbfKCgGXEzGjauVaIWFFVxC_ZZHZiB0g==
</PRE>
<ADDRESS>
</ADDRESS>
</BODY></HTML>
Jason
02/16/2022, 2:13 PMenvironment: {NODE_OPTIONS: '--experimental-wasm-threads'}
but after adding it the function is just never invoked. it's an api and I am invoking it manually via the sst console. Where am I going wrong? Is this the correct way to enable it?
Edit: ah it is trying to invoke, I now see an error /var/lang/bin/node: --experimental-wasm-threads is not allowed in NODE_OPTIONS
. Is there any way to allow this?Erik Robertson
02/17/2022, 12:15 PMBrett Fieber
02/17/2022, 8:07 PMStorageStack
I'm creating an sst.Table construct that references an existing table, like so:
this.myDataTable = new sst.Table(this, 'MyData', {
dynamodbTable: dynamodb.Table.fromTableArn(this, 'MyDataTable', `arn:aws:dynamodb:${scope.region}:${scope.account}:table/${scope.stage}-my-data`)
})
Then in my ApiStack
I'm granting the Api permissions, like so:
this.api.attachPermissions([myDataTable])
All is well.. Hurray. But...
If I want to query from a global secondary index, such as GSI0
, I get permission denied.
Do I need to create an additional sst.Table construct pointing to that index? such as:
this.myDataGSITable = new sst.Table(this, 'MyDataGSI', {
dynamodbTable: dynamodb.Table.fromTableArn(this, 'MyDataTableGSI', `arn:aws:dynamodb:${scope.region}:${scope.account}:table/${scope.stage}-my-data/index/GSI0`)
})
Or is there a more appropriate method to grant access to the API?jamlen
02/18/2022, 12:35 PMEventBus
how do I point to the Default event bus? I've been trying to set up a subscriber to all dynamoDB events but it never gets hit and I'm assuming that's because the events are being fired onto the default bus.Daniel Gato
02/19/2022, 5:10 PMSean Matheson
02/24/2022, 12:33 PMDaniel Gato
02/24/2022, 3:34 PMJason
02/24/2022, 7:47 PMruntime: lambda.Runtime.PROVIDED
but sst.Function
doesn't allow it. Is there some workaround I can do apart from just using the cdk constructs directly? I really need to use node v16... I'm guessing provided runtimes aren't allowed because of the local dev stuff but if it's node I think it shouldn't make a difference?Karo
02/25/2022, 5:34 PMDrew
02/26/2022, 10:03 PMjest test
work for you?Ross Coundon
02/28/2022, 12:57 PMRoss Coundon
02/28/2022, 7:39 PMCarter Himmel
03/01/2022, 6:15 AMAshishkumar Pandey
03/01/2022, 3:56 PMRoss Coundon
03/01/2022, 5:06 PMDan Van Brunt
03/02/2022, 3:34 PMSST v0.60.2