Sione
03/11/2021, 8:48 PMbaseUrl
to resolve module file path relative to baseUrl . Typescript does recognized the path but it's failing on build. I wonder if this is esbuild limitation or something else. From the looks of it in .build file, the path is not being resolved.
Running type checker
Deploying stacks
Error: Cannot find module 'util/domain'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/Users/sionelt/projects/enterprise/lib/integrations-app.ts:10:46)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
Seth Geoghegan
03/12/2021, 4:14 PMnew sst.Function(this, "MyNamedFunction", {
handler: "src/messages/list.handler",
functionName: "my-funky-function". // <--- set this
});
thdxr
03/12/2021, 7:45 PM"resolutions": {
"@serverless-stack/**/typescript": "4.2.3",
}
Jay
thdxr
03/14/2021, 4:07 AMRoss Coundon
03/15/2021, 9:24 AMthdxr
03/16/2021, 5:54 AMcopyFiles
feature but ended up not using it since I opted to package it via a layer insteadDmitry Pavluk
03/16/2021, 6:04 AMDmitry Pavluk
03/16/2021, 6:48 AMclaudioc
03/16/2021, 2:03 PMimport sql from './sql/seed.sql'
// Do something with the sql (which is just a string)
That’s a pretty easy setup (I can share it)Dmitry Pavluk
03/16/2021, 5:02 PMthdxr
03/16/2021, 5:06 PMDmitry Pavluk
03/16/2021, 5:29 PMthdxr
03/16/2021, 5:30 PMthdxr
03/16/2021, 5:31 PMDmitry Pavluk
03/18/2021, 7:40 PMDmitry Pavluk
03/18/2021, 8:03 PMSlackbot
03/18/2021, 10:03 PMDmitry Pavluk
03/19/2021, 3:18 AMnode_modules
> node_modules/formidable/lib/file.js:1:19: warning: Indirect calls to "require" will not be bundled (surround with a try/catch to silence this warning)
1 │ if (global.GENTLY) require = GENTLY.hijack(require);
Dennis Dang
03/19/2021, 4:11 PMDennis Dang
03/23/2021, 12:57 AMconst usagePlan = new apigateway.UsagePlan(scope, id, { name: "PoorDevPlan",throttle: { rateLimit: 5000 } });
. But how can I attach this to the current Api construct?Frank
sst.AppSync
construct, and I’m curious if ppl have a lot of resolvers and if there’s an easier way to define them, ie. something like the Api routes make sense?
resolvers: {
'query listNotes' : 'src/listNotes.main',
'query getNote' : 'src/getNote.main',
'mutation addNote': 'src/addNote.main',
}
Dmitry Pavluk
03/24/2021, 1:34 AMDmitry Pavluk
03/26/2021, 4:11 AM# API GW: Set up throttling and metrics
aws apigatewayv2 update-stage \
--api-id xxx \
--stage-name '$default' \
--default-route-settings '{"ThrottlingBurstLimit":10,"ThrottlingRateLimit":50,"DetailedMetricsEnabled":true}'
# CFN: fix stupidity. See <https://github.com/serverless-stack/serverless-stack/issues/125>
aws logs put-resource-policy --policy-name AWSLogDeliveryWrite20150319 --policy-document "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"AWSLogDeliveryWrite\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"<http://delivery.logs.amazonaws.com|delivery.logs.amazonaws.com>\"},\"Action\":[\"logs:CreateLogStream\",\"logs:PutLogEvents\"],\"Resource\":[\"*\"]}]}"
# Aurora: enable Performance Insights on every instance. If needed: brew install jq
aws rds describe-db-instances --query 'DBInstances[*].[DBInstanceIdentifier]' \
| jq -r '.[]' | jq -r '.[]' \
| xargs -J % -L1 \
aws rds modify-db-instance \
--db-instance-identifier % \
--enable-performance-insights
Matthew Purdon
03/26/2021, 2:41 PMBma
03/27/2021, 1:55 PMthdxr
03/27/2021, 9:56 PMTyler Flint
03/29/2021, 9:51 PMPål Brattberg
03/29/2021, 10:42 PMApi
construct, do we not get automatic `LogGroup`s for our functions/routes? Only the access logs? I can't find logging output from my functions anywhere, but guessing I'm just too tired? 🤪Matthew Purdon
03/30/2021, 1:21 PM