Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent provisioned concurrency and publish: true #375

Open
schwjustin opened this issue May 5, 2024 · 1 comment
Open

Inconsistent provisioned concurrency and publish: true #375

schwjustin opened this issue May 5, 2024 · 1 comment
Assignees

Comments

@schwjustin
Copy link

schwjustin commented May 5, 2024

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.

const testRoute = api.route("GET /test", {
    handler: "services/test/handler",
    transform: {
        function: (args) => {
            args.publish = true;
        },
    },
    link: [...keys],
});

const osintURLConcurrency = new aws.lambda.ProvisionedConcurrencyConfig("ProvisionedConcurrencyName", {
    functionName: testRoute.function.name.apply((name) => name),
    qualifier: testRoute.function.nodes.function.version.apply((version) => version),
    provisionedConcurrentExecutions: 1,
});
ProvisionedConcurrencyName aws:lambda:ProvisionedConcurrencyConfig
   creating urn:pulumi:justinschwartz::sst::aws:lambda/provisionedConcurrencyConfig:ProvisionedConcurrencyConfig::ProvisionedConcurrencyName: 1 error occurred:
   
   waiting for Lambda Provisioned Concurrency Config (sst-justinschwartz-APIRoute____HandlerFunction,1) to be ready: status reason: FUNCTION_ERROR_INIT_FAILURE
@schwjustin
Copy link
Author

This was using sst version 0.0.343

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants