Adam Fanello
01/21/2022, 5:50 PMnpm install
freeze on reify:node-sass
for two minutes every single time. I think it's related to having a react app in my NPM workspace pulling the current version of that, and SST depending on next.js depending on on old version of node-sass that fails to compile.Adam Fanello
01/21/2022, 6:58 PMError: ENOENT: no such file or directory, open '/Users/adam/dev/casa/cloud/.build/cfn-types-2-classes.json'
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at Object.readJsonSync (/Users/adam/dev/casa/node_modules/aws-cdk-lib/cloudformation-include/lib/file-utils.ts:5:27)
at loadCfnTypeToL1Mapping (/Users/adam/dev/casa/node_modules/aws-cdk-lib/cloudformation-include/lib/cfn-type-to-l1-mapping.ts:24:17)
at Object.lookup (/Users/adam/dev/casa/node_modules/aws-cdk-lib/cloudformation-include/lib/cfn-type-to-l1-mapping.ts:17:26)
at CfnInclude4.getOrCreateResource (/Users/adam/dev/casa/node_modules/aws-cdk-lib/cloudformation-include/lib/cfn-include.ts:503:49)
at new CfnInclude4 (/Users/adam/dev/casa/node_modules/aws-cdk-lib/cloudformation-include/lib/cfn-include.ts:93:12)
at new IotDeviceStack (/Users/adam/dev/casa/cloud/src/stacks/iot-device/iot-device.stack.ts:17:5)
at Object.main (/Users/adam/dev/casa/cloud/src/stacks/index.ts:117:23)
at Object.<anonymous> (/Users/adam/dev/casa/cloud/.build/run.js:94:16)
Slackbot
01/21/2022, 7:13 PMSam Hulick
01/21/2022, 7:36 PM//# sourceMappingURL=
footer. has anyone else noticed this? I’ll keep an eye out if it happens again and see if I can replicate it consistentlySam Hulick
01/21/2022, 9:15 PMRoss Gerbasi
01/21/2022, 10:39 PM.env
files before a Stack class, they only seem to exist at constructor time. is this expected? seems odd even if I add import 'dotenv/config'
myself to my index.ts
or the stackRoss Coundon
01/22/2022, 6:48 AM/aws/vendedlogs/apis/xxxxx/default
If I delete this log group and run it fails because that log group is missing so I'm a bit stuck. Any thoughts on how to get around this?gio
01/22/2022, 9:41 AMsst start
, my SST version is 0.56.2, I user Mac OSX, this is the code on my launch.json:
{
"command": "npm start",
"name": "sst",
"request": "launch",
"type": "node-terminal"
}
Devin
01/22/2022, 2:52 PM.csv
file in my app and that broke deployment because computers are complex
I have a strange deployment error and can’t seem to make sense of it. 🧵Baba Yaga
01/22/2022, 9:27 PMnpx create-serverless-stack@latest --language typescript --use-yarn test
and then just a yarn start
and getting this error:
Using stage: test
Preparing your SST app
=======================
Deploying debug stack
=======================
Deploying stacks
❌ test-test-debug-stack failed: The test-test-debug-stack stack contains no resources.
Stack test-test-debug-stack
Status: failed
Error: The test-test-debug-stack stack contains no resources.
Failed to deploy debug stack test-test-debug-stack
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
Adrian Schweizer
01/23/2022, 3:56 PMauthorizationType: sst.ApiAuthorizationType.NONE
but then in the lambda, the requestContext.authorizer
is actually undefined.Martin Wawrusch
01/23/2022, 10:32 PMMarko Bilal
01/24/2022, 12:19 AMSam Hulick
01/24/2022, 1:31 AMb4fe69cd-99e0-46bc-9c22-dafcaa3f7907 REQUEST dev-microservices-core-cognitoEmailSender [lambda/auth/cognito-email-sender.main] invoked
Unhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"TypeError: Cannot read property 'buildClient' of undefined","reason":"TypeError: Cannot read property 'buildClient' of undefined","promise":{},"stack":["Runtime.UnhandledPromiseRejection: TypeError: Cannot read property 'buildClient' of undefined"," at process.<anonymous> (file:///Volumes/SuperData/Sites/reelcrafter/v2-microservices/node_modules/@serverless-stack/aws-lambda-ric/lib/index.js:34:23)"," at process.emit (events.js:400:28)"," at process.emit (domain.js:475:12)"," at processPromiseRejections (internal/process/promises.js:245:33)"," at processTicksAndRejections (internal/process/task_queues.js:96:32)"]}
Daniel Gato
01/24/2022, 6:47 AMKrizza
01/24/2022, 7:34 AMArgument of type '{ bucket: sst.Bucket; }' is not assignable to parameter of type 'StackProps'.
Object literal may only specify known properties, and 'bucket' does not exist in type 'StackProps'.
Daniel Gato
01/24/2022, 9:40 AMupload failed: ../../tmp/tmpt2vmrmzx/contents/file.txt to <s3://dg-imac-xxx-storage-bucket970c6ada-1gfwpc3jg5cbd/public/demo/file.txt> An error occurred (AccessDenied) when calling the PutObject operation: Access Denied
I’m using
new s3deploy.BucketDeployment(this, 'DeployDemoXxx', {
sources: [s3deploy.Source.asset('./src/deployments/demo/')],
exclude: ['*'],
include: ['*.txt'],
destinationKeyPrefix: 'public/demo/',
destinationBucket: bucket.s3Bucket,
accessControl: 'PublicRead',
contentType: 'plain/text',
});
Could that be from because of the upgrade to CDK v2 perhaps?Marcos Sampaio
01/24/2022, 1:28 PMlambda:InvokeFunction
.
Is it possible to specify an existent role instead of creating one?Ash Rhazaly
01/24/2022, 1:53 PMDan Van Brunt
01/24/2022, 2:16 PMlamda@edge
functions” issue. But running into a bit of a circular dep issue we’re trying to untangle. Any thoughts?Jacoby
01/24/2022, 2:30 PMSeth Geoghegan
01/24/2022, 3:20 PMThere was an error synthesizing your app
when performing a yarn run start
. I've deployed this app many times and this is the first time I'm seeing this. However, I can manually sst build
and sst deploy
followed by an sst remove
to remove the deployed app. This appears to be limited to the live lambda dev environmentJakub Przybytek
01/24/2022, 3:33 PMnpm start
is running then any changes in /src
and /stacks
folder are being detected and applied to my local dev stage automatically.
To check if it was just my issue I have created fresh new sst apps (both Java Script and Typescript) and neither hot upload nor eslint is working there.
Am I missing something obvious? Or I have to configure those two features by myself now?
thanksKujtim Hoxha
01/24/2022, 4:54 PMMichael Robellard
01/24/2022, 9:35 PMGarret Harp
01/24/2022, 10:04 PMmessageGroupId
be dynamic based on an event when going from event bridge -> sqs.fifo? Seems pretty useless to have a static message group id for every message 😅Sam Hulick
01/24/2022, 11:07 PMsst test
in a working state? when I run it, it just prints “Preparing your SST app” and seems to stop therePadraig
01/24/2022, 11:38 PMAccessDeniedException: User: arn:aws:sts::784381721788:assumed-role/prod-hulacorn-api-ApiLambdaPUTvotesidServiceRoleA3-GZY178NMJ59Y/prod-hulacorn-api-ApiLambdaPUTvotesid95CB421A-bePQRQW1c2iD is not authorized to perform: dynamodb:UpdateItem on resource: arn:aws:dynamodb:us-east-1:784381721788:table/Podge-hulacorn-Problems
Im not using any authentication setup(cognito)
I'm using as per the guide
this.api.attachPermissions([table]);
anyone got any ideas what might cause this discrepancy?Michael Wolfenden
01/25/2022, 6:09 AMHaider Abbas
01/25/2022, 12:20 PMOPTIONS /resources/post-here/ HTTP/1.1
Host: bar.example
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Connection: keep-alive
Origin: <https://foo.example>
Access-Control-Request-Method: POST
Access-Control-Request-Headers: X-PINGOTHER, Content-Type
Any help on this would mean a lot for me. Great Thanks!