File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -79,3 +79,11 @@ resource "aws_lambda_function" "main" {
7979 }
8080 }
8181}
82+
83+ resource "aws_lambda_provisioned_concurrency_config" "main" {
84+ count = var. provisioned_concurrent_executions == null ? 0 : 1
85+
86+ function_name = aws_lambda_function. main . function_name
87+ qualifier = aws_lambda_function. main . version
88+ provisioned_concurrent_executions = var. provisioned_concurrent_executions
89+ }
Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ variable "function_name" {
4848 description = " (Required) A unique name for the Lambda function."
4949}
5050
51+ variable "provisioned_concurrent_executions" {
52+ type = number
53+ description = " (Optional) Amount of capacity to allocate. Must be greater than or equal to 1."
54+ default = null
55+ }
56+
5157variable "handler" {
5258 type = string
5359 description = " (Required) The function entrypoint in your code."
You can’t perform that action at this time.
0 commit comments