Eduardo
04/21/2022, 1:53 PMif (route === ApiRoutes.RouterPath) {
const version = fn.currentVersion;
version.addAlias("AUTO_GENERATE_ALIAS", {
provisionedConcurrentExecutions: 1,
});
}
This does in fact create the alias with the concurency setup correctly in the AWS CONSOLE.
THe problem now, is that we need to manually go the AWS console and then point the gateway to this alias manually, and press DEPLOY for it to actually start hitting our alias instead of LATEST$.
Am I missing a step somwhere? How can I create this without the need to have a manual step?Derek Kershner
04/21/2022, 2:27 PMEduardo
04/21/2022, 2:29 PMFrank
Frank
Frank
5
.Derek Kershner
04/21/2022, 10:16 PMFrank
Frank
Derek Kershner
04/21/2022, 10:21 PMFrank
Eduardo
04/27/2022, 10:25 AMEduardo
04/27/2022, 10:56 AM[ApiRoutes.RouterPath]: {
function: "src/lambdas/router.handler",
currentVersionOptions: {
provisionedConcurrentExecutions: 5,
},
},
},
});
//@ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
this.api.getFunction(ApiRoutes.RouterPath).currentVersion;
I have a new function version, but if I go to that version an check provisioned concurrency Its empty. I going to see if I can find the difs between yours and mine.Eduardo
04/27/2022, 11:17 AMdefaultFunctionProps: {
timeout: 120,
currentVersionOptions: {
provisionedConcurrentExecutions: 3,
},
Eduardo
04/27/2022, 11:18 AM