Skip to content

Commit c82299a

Browse files
authored
feat: Added ephemeral_storage_size variable (#167)
1 parent 1d7bfe9 commit c82299a

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ See the [functions](https://github.com/terraform-aws-modules/terraform-aws-notif
7676

7777
| Name | Source | Version |
7878
|------|--------|---------|
79-
| <a name="module_lambda"></a> [lambda](#module\_lambda) | terraform-aws-modules/lambda/aws | 3.1.0 |
79+
| <a name="module_lambda"></a> [lambda](#module\_lambda) | terraform-aws-modules/lambda/aws | 3.2.0 |
8080

8181
## Resources
8282

@@ -106,6 +106,7 @@ See the [functions](https://github.com/terraform-aws-modules/terraform-aws-notif
106106
| <a name="input_iam_role_tags"></a> [iam\_role\_tags](#input\_iam\_role\_tags) | Additional tags for the IAM role | `map(string)` | `{}` | no |
107107
| <a name="input_kms_key_arn"></a> [kms\_key\_arn](#input\_kms\_key\_arn) | ARN of the KMS key used for decrypting slack webhook url | `string` | `""` | no |
108108
| <a name="input_lambda_description"></a> [lambda\_description](#input\_lambda\_description) | The description of the Lambda function | `string` | `null` | no |
109+
| <a name="input_lambda_function_ephemeral_storage_size"></a> [lambda\_function\_ephemeral\_storage\_size](#input\_lambda\_function\_ephemeral\_storage\_size) | Amount of ephemeral storage (/tmp) in MB your Lambda Function can use at runtime. Valid value between 512 MB to 10,240 MB (10 GB). | `number` | `512` | no |
109110
| <a name="input_lambda_function_name"></a> [lambda\_function\_name](#input\_lambda\_function\_name) | The name of the Lambda function to create | `string` | `"notify_slack"` | no |
110111
| <a name="input_lambda_function_s3_bucket"></a> [lambda\_function\_s3\_bucket](#input\_lambda\_function\_s3\_bucket) | S3 bucket to store artifacts | `string` | `null` | no |
111112
| <a name="input_lambda_function_store_on_s3"></a> [lambda\_function\_store\_on\_s3](#input\_lambda\_function\_store\_on\_s3) | Whether to store produced artifacts on S3 or locally. | `bool` | `false` | no |

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ resource "aws_sns_topic_subscription" "sns_notify_slack" {
7070

7171
module "lambda" {
7272
source = "terraform-aws-modules/lambda/aws"
73-
version = "3.1.0"
73+
version = "3.2.0"
7474

7575
create = var.create
7676

@@ -84,6 +84,7 @@ module "lambda" {
8484
timeout = 30
8585
kms_key_arn = var.kms_key_arn
8686
reserved_concurrent_executions = var.reserved_concurrent_executions
87+
ephemeral_storage_size = var.lambda_function_ephemeral_storage_size
8788

8889
# If publish is disabled, there will be "Error adding new Lambda Permission for notify_slack:
8990
# InvalidParameterValueException: We currently do not support adding policies for $LATEST."

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ variable "lambda_function_s3_bucket" {
162162
default = null
163163
}
164164

165+
variable "lambda_function_ephemeral_storage_size" {
166+
description = "Amount of ephemeral storage (/tmp) in MB your Lambda Function can use at runtime. Valid value between 512 MB to 10,240 MB (10 GB)."
167+
type = number
168+
default = 512
169+
}
170+
165171
variable "sns_topic_tags" {
166172
description = "Additional tags for the SNS topic"
167173
type = map(string)

0 commit comments

Comments
 (0)