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
Copy file name to clipboardExpand all lines: infrastructure/modules/kms/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,7 @@ module "kms_key" {
73
73
| <aname="input_allowed_arn"></a> [allowed\_arn](#input\_allowed\_arn)| List of ARNs that are allowed full encrypt/decrypt access to the KMS key. |`list(string)`|`[]`| no |
74
74
| <aname="input_aws_identifiers"></a> [aws\_identifiers](#input\_aws\_identifiers)| List of ARNs that will be granted decrypt-only access. |`list(string)`|`[]`| no |
| <aname="input_kms_deletion_window"></a> [kms\_deletion\_window](#input\_kms\_deletion\_window)| Lambda KMS time to deletion in days |`number`|`30`| no |
76
77
| <aname="input_kms_key_description"></a> [kms\_key\_description](#input\_kms\_key\_description)| Description of the KMS key. |`string`| n/a | yes |
77
78
| <aname="input_kms_key_name"></a> [kms\_key\_name](#input\_kms\_key\_name)| Name of the KMS key to be created. |`string`| n/a | yes |
|[archive_file.lambda](https://registry.terraform.io/providers/hashicorp/archive/latest/docs/data-sources/file)| data source |
92
+
|[aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity)| data source |
93
+
|[aws_iam_policy_document.admin](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
88
94
|[aws_iam_policy_document.assume_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
95
+
|[aws_iam_policy_document.lambda](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
89
96
|[aws_iam_policy_document.merged_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
90
97
## Inputs
91
98
92
99
| Name | Description | Type | Default | Required |
| <aname="input_api_execution_arn"></a> [api\_execution\_arn](#input\_api\_execution\_arn)| Execution ARN of the API Gateway used for granting invoke permissions. |`string`|`""`| no |
102
+
| <aname="input_default_lambda_layers"></a> [default\_lambda\_layers](#input\_default\_lambda\_layers)| n/a |`list(string)`| <pre>[<br/> "arn:aws:lambda:eu-west-2:282860088358:layer:AWS-AppConfig-Extension:120"<br/>]</pre> | no |
95
103
| <aname="input_default_policies"></a> [default\_policies](#input\_default\_policies)| List of default IAM policy ARNs to attach to the Lambda execution role. |`list(string)`| <pre>[<br/> "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole",<br/> "arn:aws:iam::aws:policy/CloudWatchLambdaInsightsExecutionRolePolicy"<br/>]</pre> | no |
104
+
| <aname="input_extra_lambda_layers"></a> [extra\_lambda\_layers](#input\_extra\_lambda\_layers)| n/a |`list(string)`| <pre>[<br/> "arn:aws:lambda:eu-west-2:580247275435:layer:LambdaInsightsExtension:53"<br/>]</pre> | no |
96
105
| <aname="input_handler"></a> [handler](#input\_handler)| Function entry point in the codebase (e.g., 'index.handler'). |`string`| n/a | yes |
97
106
| <aname="input_http_methods"></a> [http\_methods](#input\_http\_methods)| List of HTTP methods to integrate with the Lambda function. |`list(string)`|`[]`| no |
98
107
| <aname="input_iam_role_policy_documents"></a> [iam\_role\_policy\_documents](#input\_iam\_role\_policy\_documents)| List of IAM policy document ARNs to attach to the Lambda execution role. |`list(string)`|`[]`| no |
99
108
| <aname="input_is_gateway_integration_needed"></a> [is\_gateway\_integration\_needed](#input\_is\_gateway\_integration\_needed)| Indicate whether the lambda need an aws\_api\_gateway\_integration resource block |`bool`|`true`| no |
100
109
| <aname="input_is_invoked_from_gateway"></a> [is\_invoked\_from\_gateway](#input\_is\_invoked\_from\_gateway)| Indicate whether the lambda is supposed to be invoked by API gateway. Should be true for authoriser lambda. |`bool`|`true`| no |
110
+
| <aname="input_kms_deletion_window"></a> [kms\_deletion\_window](#input\_kms\_deletion\_window)| Lambda KMS time to deletion in days |`number`|`30`| no |
101
111
| <aname="input_lambda_environment_variables"></a> [lambda\_environment\_variables](#input\_lambda\_environment\_variables)| Map of environment variables to set in the Lambda function. |`map(string)`|`{}`| no |
102
112
| <aname="input_lambda_ephemeral_storage"></a> [lambda\_ephemeral\_storage](#input\_lambda\_ephemeral\_storage)| Amount of ephemeral storage (in MB) to allocate to the Lambda function. |`number`|`512`| no |
103
113
| <aname="input_lambda_timeout"></a> [lambda\_timeout](#input\_lambda\_timeout)| Function timeout in seconds. |`number`|`30`| no |
104
114
| <aname="input_memory_size"></a> [memory\_size](#input\_memory\_size)| Amount of memory to allocate to the Lambda function (in MB). |`number`|`512`| no |
105
115
| <aname="input_name"></a> [name](#input\_name)| Unique name for the Lambda function. |`string`| n/a | yes |
116
+
| <aname="input_persistent_workspaces"></a> [persistent\_workspaces](#input\_persistent\_workspaces)| A list of workspaces that require persistent logs |`list(string)`| <pre>[<br/> "ndr-dev",<br/> "ndr-test",<br/> "pre-prod",<br/> "prod"<br/>]</pre> | no |
106
117
| <aname="input_reserved_concurrent_executions"></a> [reserved\_concurrent\_executions](#input\_reserved\_concurrent\_executions)| The number of concurrent execution allowed for lambda. A value of 0 will stop lambda from running, and -1 removes any concurrency limitations. Default to -1. |`number`|`-1`| no |
107
118
| <aname="input_resource_id"></a> [resource\_id](#input\_resource\_id)| ID of the API Gateway resource (path) to attach Lambda to. |`string`|`""`| no |
108
119
| <aname="input_rest_api_id"></a> [rest\_api\_id](#input\_rest\_api\_id)| ID of the associated API Gateway REST API. |`string`|`""`| no |
0 commit comments