I don't find the AWS documentation very clear on this, but it seems like there is no way to limit the unreserved concurrency of an AWS Lambda function. Instead it requires a reserved concurrency, which has to be provisioned and therefor comes at an additional costs.
Is that correct?
And even when I try to add a concurrency configuration it fails to apply it for the "$LATEST" version. Why is that?
resource "aws_lambda_provisioned_concurrency_config" "deliver" {
function_name = aws_lambda_function.deliver.function_name
qualifier = aws_lambda_function.deliver.version
provisioned_concurrent_executions = 1
}