I can’t seem to get provisioned concurrency to wor...
# help
s
I can’t seem to get provisioned concurrency to work:
Copy code
currentVersionOptions: {
              provisionedConcurrentExecutions: 1,
            },
I made that change to the
sst.Function
, and it results in no changes to the stack 🤔
p
I think I ran into the same issue a few months back and had to create the version explicitly, since provision concurrency needs an explicit lambda version:
Copy code
const provisionedBaseHandler = new lambda.Alias(
      this,
      'BaseHandlerProvisioned',
      {
        aliasName: 'Provisioned',
        version: baseHandler.currentVersion,
        provisionedConcurrentExecutions: 1,
      }
    );
(
baseHandler
is your sst.Function())
t
s
ugh, not fixed? and it was reported in March?
cool, all I had to do was define the function (
func = new sst.Function(..)
) and then do
func.currentVersion;
after that.
thanks!