justindra
07/05/2021, 9:22 PMGET /modules/{moduleId}
GET /modules/{moduleId}/shuttles
Manoel Feliciano
07/05/2021, 9:46 PMsst start
it works fine, but when I try to deploy it, it complains about an external module called ffmpeg-static. If I add this library to the externalModules property of the bundle, the deploy works, but my function does not work when I call the url, it complains about the following… (will put inside the thread).
Does anybody have a clue of what might be happening? Thanks a lot in advance!Branko Gvoka
07/06/2021, 9:52 AM@prisma/client
with sst. When I run sst start
I’m getting
Transpiling Lambda code...
> node_modules/@prisma/client/runtime/index.js:24726:23: error: Could not resolve "_http_common" (mark it as external to exclude it from the bundle)
24726 │ var common = require("_http_common");
╵ ~~~~~~~~~~~~~~
Did anyone encounter similar problem?
I’ve tried to pull this into layer and used externalModules for @prisma/client but it also doesnt pick it up. Here’s Stack snippet in screenshot. I’ve even tried pulling these default into route directly but no luck.
Thanks!Branko Gvoka
07/06/2021, 9:58 AMtypecheck: true
is set, I’m getting type errors. I’ve tried to exclude node_modules in tsconfig but also no luck 🙂 Not my luckiest day.Michael Wolfenden
07/07/2021, 2:29 AMapi
, is there anyway to retrieve the routes it was configured with?Brinsley
07/08/2021, 1:43 PMGet transspiler handler error TypeError: Cannot read property 'buildPromise' of undefined
The lambda at the moment is just set up to log out the contents of the event and context so there’s nothing weird happening in there.Mike McCall
07/08/2021, 4:49 PMtranspiling code…
Nick Laffey
07/08/2021, 7:28 PMcustomDomain: "<http://mySubDomain.myDomain.com|mySubDomain.myDomain.com>"
but it’s erroring out saying it can’t find the hosted zone: <http://mySubDomain.myDomain.com|mySubDomain.myDomain.com>
Adrián Mouly
07/08/2021, 9:30 PMAdrián Mouly
07/09/2021, 3:50 AMGuy Shechter
07/09/2021, 5:19 AMpath
, it throws the following error:
Error: An ApiMapping key may contain only letters, numbers and one of $-_.+!*'(),
at new ApiMapping (app/node_modules/@aws-cdk/aws-apigatewayv2/lib/common/api-mapping.ts:69:13)
at HttpStage._addDomainMapping (app/node_modules/@aws-cdk/aws-apigatewayv2/lib/common/base.ts:48:5)
at new HttpStage (app/node_modules/@aws-cdk/aws-apigatewayv2/lib/http/stage.ts:118:12)
at new HttpApi (app/node_modules/@aws-cdk/aws-apigatewayv2/lib/http/api.ts:300:27)
at new Api (app/node_modules/@serverless-stack/resources/src/Api.ts:178:22)
This comment on aws-cdk seems to be related to v1 of the apigateway, but I’m not sure if v2 supports it in CDK yet.Brett Gullan
07/09/2021, 5:51 AMdemo-scripts-now-client-StaticSite | CREATE_FAILED | Custom::SSTBucketDeployment | NextSiteCustomResourceAFBA8221 Received response status [FAILED] from custom resource. Message returned: [Errno 28] No space left on device (RequestId: 20d36fd2-65f7-4ecd-a4df-bcbde7a23bbd)
Any ideas why this would be happening?Hosy Mia
07/10/2021, 3:04 PMnpx create-serverless-stack@latest my-sst-app --language python
• npm run test
I get the following error:
Cannot find a handler file at src/lambda.js".
Is it possible to change the default extension sst looks for to .py? instead of .js?Matt Stibbard
07/11/2021, 9:59 AMServerless: Deprecation warning: CLI options definitions were upgraded with "type" property (which could be one of "string", "boolean", "multiple"). Below listed plugins do not predefine type for introduced options:
- ServerlessPlugin for "out"
Please report this issue in plugin issue tracker.
Starting with next major release, this will be communicated with a thrown error.
More Info: <https://www.serverless.com/framework/docs/deprecations/#CLI_OPTIONS_SCHEMA>
Hosy Mia
07/12/2021, 4:41 AMCarlos Ribeiro
07/12/2021, 8:55 AMbundle: {
copyFiles: [{
from: `src/config/`,
to: `src/config/`
}]
}
colin
07/12/2021, 7:15 PMgraphql-tools
and also see there are a few experimental methods in the appsync sdk for creating fields, types, etc… but I was hoping to just do some sort of simple concatenation (without being too low level) and pass it into my AppSyncApi config.
graphqlApi: {
schema: 'src/schema/schema.graphql',
}
Any ideas here?
Hoping to have a structure something like
src/schema/
-- project.schema
-- other-entity.schema
gligor
07/13/2021, 9:27 PMLouis Barclay
07/14/2021, 10:59 PMnpx sst start
and test a POST request with Postman, it works. When I stop running that, and test the POST request to the same URL, with the sst app deployed via npx sst start
, I immediately get 500 Internal Server Error
, and no log appearing for the Lambda function in CloudWatch. I am certain that I'm sending the request to the correct URL. Any ideas of what I could be doing wrong?
tl;dr: I'm getting 500 Internal Server Error
on all my functions and not sure why, and struggling to debug.Guy Shechter
07/16/2021, 4:33 AMconst incomingBucket = new s3.Bucket(this, 's3Incoming', {
bucketName: `${scope.stage}-data-files`,
removalPolicy: cdk.RemovalPolicy.DESTROY,
});
const incomingQueue = new sqs.Queue(this, 'sqsIncoming', {
queueName: `${scope.stage}-incoming`
});
incomingBucket.addObjectCreatedNotification(incomingQueue);
I get the following error:
Error: ENOENT: no such file or directory, open 'app/.build/lib/lambda/index.py'
at Object.openSync (node:fs:582:3)
at Object.readFileSync (node:fs:450:35)
at new NotificationsResourceHandler (app/node_modules/@aws-cdk/aws-s3/lib/notifications-resource/notifications-resource-handler.ts:87:29)
at Function.singleton (pp/node_modules/@aws-cdk/aws-s3/lib/notifications-resource/notifications-resource-handler.ts:41:16)
at BucketNotifications.createResourceOnce (app/node_modules/@aws-cdk/aws-s3/lib/notifications-resource/notifications-resource.ts:105:52)
at BucketNotifications.addNotification (app/node_modules/@aws-cdk/aws-s3/lib/notifications-resource/notifications-resource.ts:54:27)
at Bucket2.addEventNotification (app/node_modules/@aws-cdk/aws-s3/lib/bucket.ts:338:24)
at Bucket2.addObjectCreatedNotification (app/node_modules/@aws-cdk/aws-s3/lib/bucket.ts:343:17)
at new MyStack (app/lib/MyStack.js:26:20)
It looks like CDK needs to create a lambda to connect the notification, but SST hasn’t added it to the build?
I would do this directly with SST but it seems that Lambda functions are the only notification type supported from sst.Bucket.Muhammad Ali
07/16/2021, 2:19 PMMr.9715
07/16/2021, 4:17 PMSean Brydon
07/17/2021, 5:34 PMMuhammad Ali
07/19/2021, 3:53 PMBranko Gvoka
07/19/2021, 7:51 PMError: Do not directly set the environment for a stack?
I’ve initialized empty project, added a stack, used AWS_PROFILE and --stage and I’m getting this somehow 🙂 I’ve added later empty environment in both BaseStack and service stack but didnt helpWilliam Kasel
07/19/2021, 9:41 PMalready exists in stack
, and i’m 99% certain it’s just an incorrect workflow on my part. Any advice is helpful.
For a more specific explanation, here is a demo:
// Does CDK / SST recognize that this has already been deployed if I make a change or re-deploy?
const notesTable = new sst.Table(this, "Notes", {
fields: {
id: sst.TableFieldType.STRING,
},
primaryIndex: { partitionKey: "id" },
});
Adrián Mouly
07/20/2021, 1:37 AMthdxr
07/20/2021, 3:10 AMBearer
header - do I need to be granting permission to the pool to call the api?Louis Barclay
07/20/2021, 4:59 PMLouis Barclay
07/20/2021, 8:33 PM