@shinyaz

Lambda capacity-provider-config can only be set at function creation time

1 min read

Wanted to migrate an existing Lambda function to Managed Instances, so I tried adding --capacity-provider-config via update-function-configuration.

Output
CapacityProviderConfig isn't supported for Lambda Default functions.

Functions created as standard Lambda ("Lambda Default") can't have a Capacity Provider attached after the fact. You must specify --capacity-provider-config at create-function time.

This means migrating from standard Lambda to Managed Instances requires recreating the function with the same code. Either use a different function name, or delete and recreate with the same name. Gradual migration via aliases isn't possible — something to plan for.

Share this post

Shinya Tahara

Shinya Tahara

Solutions Architect @ AWS

I'm a Solutions Architect at AWS, providing technical guidance primarily to financial industry customers. I share learnings about cloud architecture and AI/ML on this site.The views and opinions expressed on this site are my own and do not represent the official positions of my employer.