Skip to content

Commit d0fe55f

Browse files
committed
feat: Added architecture variable
1 parent 12c9852 commit d0fe55f

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ See the [functions](https://github.com/terraform-aws-modules/terraform-aws-notif
101101
| <a name="input_cloudwatch_log_group_retention_in_days"></a> [cloudwatch\_log\_group\_retention\_in\_days](#input\_cloudwatch\_log\_group\_retention\_in\_days) | Specifies the number of days you want to retain log events in log group for Lambda. | `number` | `0` | no |
102102
| <a name="input_cloudwatch_log_group_tags"></a> [cloudwatch\_log\_group\_tags](#input\_cloudwatch\_log\_group\_tags) | Additional tags for the Cloudwatch log group | `map(string)` | `{}` | no |
103103
| <a name="input_create"></a> [create](#input\_create) | Whether to create all resources | `bool` | `true` | no |
104+
| <a name="input_architectures"></a> [architectures](#input\_architectures) | Instruction set architecture for your Lambda function. Valid values are ["x86\_64"] and ["arm64"]. | `list(string)` | `null` | no |
104105
| <a name="input_create_sns_topic"></a> [create\_sns\_topic](#input\_create\_sns\_topic) | Whether to create new SNS topic | `bool` | `true` | no |
105106
| <a name="input_enable_sns_topic_delivery_status_logs"></a> [enable\_sns\_topic\_delivery\_status\_logs](#input\_enable\_sns\_topic\_delivery\_status\_logs) | Whether to enable SNS topic delivery status logs | `bool` | `false` | no |
106107
| <a name="input_hash_extra"></a> [hash\_extra](#input\_hash\_extra) | The string to add into hashing function. Useful when building same source path for different functions. | `string` | `""` | no |

main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ module "lambda" {
9292
source_path = var.lambda_source_path != null ? "${path.root}/${var.lambda_source_path}" : "${path.module}/functions/notify_slack.py"
9393
recreate_missing_package = var.recreate_missing_package
9494
runtime = "python3.8"
95+
architectures = var.architectures
9596
timeout = 30
9697
kms_key_arn = var.kms_key_arn
9798
reserved_concurrent_executions = var.reserved_concurrent_executions

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ variable "putin_khuylo" {
44
default = true
55
}
66

7+
variable "architectures" {
8+
description = "Instruction set architecture for your Lambda function. Valid values are [\"x86_64\"] and [\"arm64\"]."
9+
type = list(string)
10+
default = ["arm64"]
11+
}
12+
713
variable "create" {
814
description = "Whether to create all resources"
915
type = bool

0 commit comments

Comments
 (0)