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 |
52
-
|[aws_iam_policy_document.lambda_deploy_bucket_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
50
+
|[aws_ssm_parameter.deployment_bucket_id](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ssm_parameter)| data source |
53
51
54
52
## Inputs
55
53
56
54
| Name | Description | Type | Default | Required |
| <aname="input_deployment_bucket_id"></a> [deployment\_bucket\_id](#input\_deployment\_bucket\_id)| ID of S3 bucket that should store our deployment artifacts. Will use the /account/DEPLOYMENT\_BUCKET\_ID value from SSM unless specified otherwise. |`string`|`null`| no |
58
57
| <aname="input_description"></a> [description](#input\_description)| Description of the Lambda Function |`string`|`null`| no |
59
58
| <aname="input_environment"></a> [environment](#input\_environment)| Environment variables to be passed to the function |`map(string)`|`{}`| no |
60
59
| <aname="input_error_rate_alarm_threshold"></a> [error\_rate\_alarm\_threshold](#input\_error\_rate\_alarm\_threshold)| Error rate (in percent, 1-100) at which to trigger an alarm notification |`number`|`25`| no |
60
+
| <aname="input_git_sha"></a> [git\_sha](#input\_git\_sha)| Hash generated by `git hash-object` in source repo and used to determine whether a lambda needs to be updated |`string`|`null`| no |
61
61
| <aname="input_handler"></a> [handler](#input\_handler)| Name of the handler function inside the artifact (https://docs.aws.amazon.com/lambda/latest/dg/configuration-console.html)|`string`| n/a | yes |
62
62
| <aname="input_layer_arns"></a> [layer\_arns](#input\_layer\_arns)| List of ARNs for layers to use with the function |`list(string)`|`[]`| no |
63
63
| <aname="input_log_retention_in_days"></a> [log\_retention\_in\_days](#input\_log\_retention\_in\_days)| Number of days to keep function logs in Cloudwatch |`number`|`365`| no |
Copy file name to clipboardExpand all lines: vars.tf
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,12 @@ variable "description" {
4
4
type=string
5
5
}
6
6
7
+
variable"deployment_bucket_id" {
8
+
default=null
9
+
description="ID of S3 bucket that should store our deployment artifacts. Will use the /account/DEPLOYMENT_BUCKET_ID value from SSM unless specified otherwise."
10
+
type=string
11
+
}
12
+
7
13
variable"environment" {
8
14
default={}
9
15
description="Environment variables to be passed to the function"
0 commit comments