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
{{ message }}
This repository was archived by the owner on Jun 8, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,10 @@ function name unique per region, for example by setting
85
85
| publish | Whether to publish creation/change as new Lambda Function Version | string |`"false"`| no |
86
86
| reserved\_concurrent\_executions | The amount of reserved concurrent executions for this Lambda function | string |`"0"`| no |
87
87
| runtime | The runtime environment for the Lambda function | string | n/a | yes |
88
-
| source\_path | The source file or directory containing your Lambda source code | string | n/a | yes |
88
+
| s3\_bucket | The S3 bucket location containing the function's deployment package. Required when `source_from_s3` = `true`. This bucket must reside in the same AWS region where you are creating the Lambda function. | string | - | no |
89
+
| s3\_key | The S3 key of an object containing the function's deployment package. Required when `source_from_s3` = `true`| string | - | no |
90
+
| source\_from\_s3 | Set this to true if fetching the Lambda source code from S3. | string |`false`| no |
91
+
| source\_path | The source file or directory containing your Lambda source code. Ignored when `source_from_s3` = `true`| string | `` | no |
89
92
| tags | A mapping of tags | map |`<map>`| no |
90
93
| timeout | The amount of time your Lambda function had to run in seconds | string |`"10"`| no |
91
94
| vpc\_config | VPC configuration for the Lambda function | map |`<map>`| no |
Copy file name to clipboardExpand all lines: variables.tf
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -32,8 +32,9 @@ variable "timeout" {
32
32
}
33
33
34
34
variable"source_path" {
35
-
description="The source file or directory containing your Lambda source code"
35
+
description="The source file or directory containing your Lambda source code. Ignored when `source_from_s3` = `true`"
36
36
type="string"
37
+
default=""
37
38
}
38
39
39
40
variable"build_command" {
@@ -84,6 +85,22 @@ variable "attach_vpc_config" {
84
85
default=false
85
86
}
86
87
88
+
variable"source_from_s3" {
89
+
description="Set this to true if fetching the Lambda source code from S3."
90
+
type="string"
91
+
default=false
92
+
}
93
+
94
+
variable"s3_bucket" {
95
+
description="The S3 bucket location containing the function's deployment package. Required when `source_from_s3` = `true`. This bucket must reside in the same AWS region where you are creating the Lambda function."
96
+
type="string"
97
+
}
98
+
99
+
variable"s3_key" {
100
+
description="The S3 key of an object containing the function's deployment package. Required when `source_from_s3` = `true`"
0 commit comments