Skip to content

Implementation of FunctionScalingConfig to support Lambda Managed Instances #47770

@hbrito-aws

Description

@hbrito-aws

Description

The aws_lambda_capacity_provider resource (introduced in #45332 / v6.24.0) does not currently support the FunctionScalingConfig API, which allows configuring the scaling behavior for Lambda Managed Instances functions.

The FunctionScalingConfig defines the minimum and maximum number of execution environments that can be provisioned for a Lambda Managed Instances function. This configuration is essential for controlling scaling boundaries and cost management.

Affected Resource(s) or Data Source(s)

aws_lambda_function (or potentially a new resource/argument on aws_lambda_capacity_provider)

Potential Terraform Configuration

# Expected/desired configuration:
resource "aws_lambda_function" "example" {
  function_name = "my-managed-instance-function"
  # ... other configuration ...

  scaling_config {
    min_execution_environments = 3
    max_execution_environments = 100
  }
}

References

https://docs.aws.amazon.com/lambda/latest/api/API_FunctionScalingConfig.html

Would you like to implement the enhancement?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequests to existing resources that expand the functionality or scope.needs-triageWaiting for first response or review from a maintainer.service/lambdaIssues and PRs that pertain to the lambda service.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions