diff --git a/README.md b/README.md
index 5051276..8de6915 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@

-
object({
arn = string
local_mount_path = string
}) | `null` | no |
| [filename](#input\_filename) | The path to the function's deployment package within the local filesystem. If defined, The s3\_-prefixed options and image\_uri cannot be used. | `string` | `null` | no |
| [function\_name](#input\_function\_name) | Unique name for the Lambda Function. | `string` | n/a | yes |
| [handler](#input\_handler) | The function entrypoint in your code. | `string` | `null` | no |
@@ -200,11 +205,6 @@ module "lambda" {
-
-
-
-
-
## Related Projects
Check out these related projects.
diff --git a/main.tf b/main.tf
index b173da6..1122ecc 100644
--- a/main.tf
+++ b/main.tf
@@ -89,6 +89,14 @@ resource "aws_lambda_function" "this" {
}
}
+ dynamic "file_system_config" {
+ for_each = var.file_system_config != null ? [var.file_system_config] : []
+ content {
+ arn = file_system_config.value.arn
+ local_mount_path = file_system_config.value.local_mount_path
+ }
+ }
+
depends_on = [module.cloudwatch_log_group]
lifecycle {
diff --git a/variables.tf b/variables.tf
index c8bfbb0..a7b35ed 100644
--- a/variables.tf
+++ b/variables.tf
@@ -58,6 +58,19 @@ variable "filename" {
default = null
}
+variable "file_system_config" {
+ type = object({
+ arn = string
+ local_mount_path = string
+ })
+ description = <