Closed schwjustin closed 3 weeks ago
This was using sst version 0.0.343
To reliably use provisioned concurrency you have to add a description to the lambda that changes on every deploy:
transform: {
function: (args) => {
args.publish = true;
args.description = "Deployed at " + new Date().toISOString(); // add this
},
},
Huh that's so weird lol
I was able to get provisioned concurrency working for my lambda using aws.lambda.ProvisionedConcurrencyConfig, however, it seems to work inconsistently. If I comment out the config and then deploy, it successfully removes the provisioned concurrency for this lambda. Then, if I uncomment it and deploy again, sometimes I get FUNCTION_ERROR_INIT_FAILURE. Also, it seems like when I update my lambda handler, I don't always get a new version published when I deploy. For example, I added a console log at the top of my handler, deployed, and under versions my lambda still had version 3 from 2 hours ago after refreshing my AWS console.