Artemiy Davydov
03/18/2022, 8:30 AMArtemiy Davydov
03/18/2022, 10:00 AMAccess-Control-Allow-Origin: *
, but there is a different value there.
allowOrigins: [
"<http://localhost:3000>",
"<https://domain1>",
"<https://dev.domain1>",
],
Uncharted
03/18/2022, 1:41 PMexport interface IService {
handle(event: APIGatewayProxyEvent): Promise<APIGatewayProxyResult>;
}
@injectable()
export class TestInject implements IService {
public async handle(event: APIGatewayProxyEvent) {
console.log('test inject');
return {
statusCode: 200,
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ success: true }),
};
}
}
const service = myContainer.get<IService>(TYPES.IService);
export const handle = service.handle;
Result:
Unhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"TypeError: Cannot read property 'name' of undefined","reason":"TypeError: Cannot read property 'name' of undefined","promise":{},"stack":["Runtime.UnhandledPromiseRejection: TypeError: Cannot read property 'name' of undefined"," at process.<anonymous> (file:///home/uncharted/projects/my-api/node_modules/@serverless-stack/aws-lambda-ric/lib/index.js:34:23)"," at process.emit (events.js:376:20)"," at processPromiseRejections (internal/process/promises.js:245:33)"," at processTicksAndRejections (internal/process/task_queues.js:96:32)"]}
Michael Robellard
03/18/2022, 7:36 PMsatish venkatakrishnan
03/19/2022, 1:41 PMSebastian Kline
03/19/2022, 8:30 PMsatish venkatakrishnan
03/20/2022, 4:36 AMBshr Ramadan
03/20/2022, 11:05 PMThis CDK CLI is not compatible with the CDK library used by your application. Please upgrade the CLI to the latest version.
(Cloud assembly schema version mismatch: Maximum schema version supported is 14.0.0, but found 16.0.0)
Theo Ballew
03/20/2022, 11:55 PMGabriel Araújo
03/21/2022, 2:50 AMTed Mader
03/21/2022, 6:12 AMDistribution
. Are there any examples/guides on how to do this with SST?satish venkatakrishnan
03/21/2022, 9:01 AMMeris Tarhanis
03/21/2022, 2:28 PMAdrian Schweizer
03/21/2022, 4:09 PMShah Hossain
03/21/2022, 4:53 PMMeris Tarhanis
03/21/2022, 5:33 PMDavid Garcia
03/21/2022, 5:35 PMinstallCommands
through the FunctionBundlePythonProps."
This doesn't seem to be correct, passing in installCommands doesn't stop the step that installs poetry, pipenv, or pip. It's not an override, because the script with the passed in commands is passed in afterwards, as seen here in this dockerfile
https://github.com/serverless-stack/serverless-stack/blob/master/packages/resources/assets/python/Dockerfile.dependencies
This bundling behavior leads to certificate errors, with no clear way for resolution. If it was possible to have custom commands run before external deps are pulled in order to add required certs, then I believe this issue would be alleviatedBoris Tane
03/21/2022, 5:54 PMsst.Bucket
inside a class that extends cdk.Construct
I get the following error
new Bucket(_this_, "Bucket");
Type 'ConstructNode' is missing the following properties from type 'Node': _locked, _children, _context, _metadata, and 6 more.
here are the deps:
"devDependencies": {
"@aws-cdk/aws-iam": "^1.149.0",
"@aws-cdk/aws-ssm": "^1.149.0",
"@serverless-stack/cli": "0.69.2",
"@serverless-stack/resources": "0.69.2",
"@tsconfig/node14": "^1.0.1",
"@types/aws-lambda": "^8.10.70",
"@types/node": "<15.0.0",
"aws-cdk-lib": "2.15.0",
"typescript": "4.4.4"
}
any pointers please?Austin
03/21/2022, 7:33 PMsst.StaticSite
construct? I’m using it to build a multi-purpose reverse proxy/redirect engine for several of our domains. StaticSite provides some convenience I would like to leverage, but I also need the CloudFront distribution to allow multiple custom domains. When I configure it directly on the cfDistribution
I get an error telling me to use customDomain
on the sst.StaticSite
but this doesn’t appear to allow multiple domains. Any suggestions?Sven Busse
03/22/2022, 9:41 AMsst test
I get an error: Cannot find module 'regenerator-runtime'
And also Typescript is not able to find jest anymore. Is there an upgrade instruction somewhere?Mischa Spiegelmock
03/22/2022, 6:29 PMExport mish-platform-Layers:ExportsOutputRefPrismaLayer958161C6A54DA9DC cannot be updated as it is in use by mish-platform-CacheAdminService, mish-platform-CandidateListService and mish-platform-CandidateMatchService (and 8 more)
Austin
03/22/2022, 7:01 PMsst.StaticSite
?Artemiy Davydov
03/22/2022, 7:15 PMAR
03/22/2022, 7:40 PM3. node_modules/@serverless-stack/node/config/index.js (63, 6) - Top-level await is not available in the configured target environment ("node14")
new sst.EventBus(props.stack, "bus", {
rules: {
plaid_hook: {
eventPattern: { source: ["plaid.hook"] },
targets: ["core/connection/plaid.sync"],
},
},
});
I can invoke the event in the console but am getting this error when invoking:
✘ [ERROR] Top-level await is not available in the configured target environment ("node14")
node_modules/@serverless-stack/node/config/index.js:63:6:
63 │ : await load();
╵ ~~~~~
export async function sync() {
return JSON.stringify({ some: "data" });
}
Michael Holroyd
03/22/2022, 8:20 PMprisma
along with sst
in a simple API. Prisma requires access to this schema.prisma
file -- how can I include that extra file to be packaged up with the code during deployment?Kristian Lake
03/22/2022, 8:43 PMKristian Lake
03/23/2022, 12:39 AMAyo
03/23/2022, 1:11 AMSebastian Kline
03/23/2022, 1:48 AMKristian Lake
03/23/2022, 1:57 AM