You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity)| data source |
49
+
|[aws_iam_policy_document.lambda_logging_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
50
+
|[aws_iam_policy_document.lambda_role_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
51
+
|[aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region)| data source |
34
52
35
53
## Inputs
36
54
37
55
| Name | Description | Type | Default | Required |
| at\_edge | Is this lambda going to be used with a Cloufront distribution? If you set this, you will not have control over log retention, and you cannot include environment variables. |`bool`|`false`| no |
40
-
| env | Env for tagging and naming. See [doc](../README.md#consistent-tagging)|`string`| n/a | yes |
41
-
| environment | Map of environment variables. |`map(string)`|`{}`| no |
42
-
| filename | n/a |`string`|`null`| no |
43
-
| function\_description | Description for lambda function. |`string`|`""`| no |
44
-
| function\_name | If not set, function use default naming convention of $project-$env-$service. See local.name in main.tf |`string`|`null`| no |
45
-
| handler | Name of the lambda handler. |`string`| n/a | yes |
46
-
| kms\_key\_arn | KMS key used to encrypt environment variables. |`string`|`null`| no |
47
-
| lambda\_role\_path | The path to the IAM role for lambda. |`string`|`null`| no |
48
-
| log\_retention\_in\_days | n/a |`number`|`null`| no |
49
-
| owner | Owner for tagging and naming. See [doc](../README.md#consistent-tagging)|`string`| n/a | yes |
50
-
| project | Project for tagging and naming. See [doc](../README.md#consistent-tagging)|`string`| n/a | yes |
51
-
| publish\_lambda | Whether to publish creation/change as new lambda function version. |`bool`|`false`| no |
52
-
| reserved\_concurrent\_executions | Set reserved\_concurrent\_executions for this function. See [docs](https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html). |`number`|`-1`| no |
| source\_s3\_key | Key identifying location of code. |`string`|`null`| no |
58
-
| timeout | Execution timeout for the lambda. |`number`|`null`| no |
57
+
| <aname="input_at_edge"></a> [at\_edge](#input\_at\_edge)| Is this lambda going to be used with a Cloufront distribution? If you set this, you will not have control over log retention, and you cannot include environment variables. |`bool`|`false`| no |
58
+
| <aname="input_env"></a> [env](#input\_env)| Env for tagging and naming. See [doc](../README.md#consistent-tagging)|`string`| n/a | yes |
59
+
| <aname="input_environment"></a> [environment](#input\_environment)| Map of environment variables. |`map(string)`|`{}`| no |
60
+
| <aname="input_filename"></a> [filename](#input\_filename)| n/a |`string`|`null`| no |
61
+
| <aname="input_function_description"></a> [function\_description](#input\_function\_description)| Description for lambda function. |`string`|`""`| no |
62
+
| <aname="input_function_name"></a> [function\_name](#input\_function\_name)| If not set, function use default naming convention of $project-$env-$service. See local.name in main.tf |`string`|`null`| no |
63
+
| <aname="input_handler"></a> [handler](#input\_handler)| Name of the lambda handler. |`string`| n/a | yes |
64
+
| <aname="input_kms_key_arn"></a> [kms\_key\_arn](#input\_kms\_key\_arn)| KMS key used to encrypt environment variables. |`string`|`null`| no |
65
+
| <aname="input_lambda_role_path"></a> [lambda\_role\_path](#input\_lambda\_role\_path)| The path to the IAM role for lambda. |`string`|`null`| no |
66
+
| <aname="input_log_retention_in_days"></a> [log\_retention\_in\_days](#input\_log\_retention\_in\_days)| n/a |`number`|`null`| no |
67
+
| <aname="input_memory_size"></a> [memory\_size](#input\_memory\_size)| Amount of memory to allocate to the lambda |`number`|`128`| no |
68
+
| <aname="input_owner"></a> [owner](#input\_owner)| Owner for tagging and naming. See [doc](../README.md#consistent-tagging)|`string`| n/a | yes |
69
+
| <aname="input_project"></a> [project](#input\_project)| Project for tagging and naming. See [doc](../README.md#consistent-tagging)|`string`| n/a | yes |
70
+
| <aname="input_publish_lambda"></a> [publish\_lambda](#input\_publish\_lambda)| Whether to publish creation/change as new lambda function version. |`bool`|`false`| no |
71
+
| <aname="input_reserved_concurrent_executions"></a> [reserved\_concurrent\_executions](#input\_reserved\_concurrent\_executions)| Set reserved\_concurrent\_executions for this function. See [docs](https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html). |`number`|`-1`| no |
| <aname="input_service"></a> [service](#input\_service)| Service for tagging and naming. See [doc](../README.md#consistent-tagging)|`string`| n/a | yes |
74
+
| <aname="input_source_code_hash"></a> [source\_code\_hash](#input\_source\_code\_hash)| n/a |`string`|`null`| no |
| <aname="output_qualified_arn"></a> [qualified\_arn](#output\_qualified\_arn)| If the lambda function is published, the qualified\_arn points at the latest version number. |
description="Set reserved_concurrent_executions for this function. See [docs](https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html)."
109
109
default=-1// aws default
110
110
}
111
+
112
+
variable"vpc_config" {
113
+
type=object({
114
+
subnet_ids =list(string),
115
+
security_group_ids =list(string)
116
+
})
117
+
118
+
description="The lambda's vpc configuration"
119
+
default=null
120
+
}
121
+
122
+
variable"memory_size" {
123
+
type=number
124
+
description="Amount of memory to allocate to the lambda"
0 commit comments