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
We eat, drink, sleep and most importantly love **DevOps**. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy <b>Bigger problems are always solved by breaking them into smaller manageable problems</b>. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller <b>connected yet manageable pieces</b> within the infrastructure.
41
+
We eat, drink, sleep and most importantly love **DevOps**. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy <b>Bigger problems are always solved by breaking them into smaller manageable problems</b>. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller <b>connected yet manageable pieces</b> within the infrastructure.
42
42
43
43
This module is basically combination of [Terraform open source](https://www.terraform.io/) and includes automatation tests and examples. It also helps to create and improve your infrastructure with minimalistic code instead of maintaining the whole infrastructure code yourself.
44
44
@@ -49,9 +49,9 @@ We have [*fifty plus terraform modules*][terraform_modules]. A few of them are c
| event\_source\_tokens | The Event Source Token to validate. Used with Alexa Skills. | list |`<list>`| no |
170
-
| filename | The path to the function's deployment package within the local filesystem. If defined, The s3\_-prefixed options cannot be used. | string |`""`| no |
171
-
| handler | The function entrypoint in your code. | string | n/a | yes |
172
-
| iam\_actions | The actions for Iam Role Policy. | list |`<list>`| no |
173
-
| kms\_key\_arn | The ARN for the KMS encryption key. | string |`""`| no |
174
-
| label\_order | Label order, e.g. `name`,`application`. | list |`<list>`| no |
175
-
| layer\_filenames | The path to the function's deployment package within the local filesystem. If defined, The s3\_-prefixed options cannot be used. | list |`<list>`| no |
176
-
| layers | List of Lambda Layer Version ARNs \(maximum of 5\) to attach to your Lambda Function. | string |`""`| no |
177
-
| license\_infos | License info for your Lambda Layer. See License Info. | list |`<list>`| no |
178
-
| managedby | ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'. | string |`"[email protected]"`| no |
179
-
| memory\_size | Amount of memory in MB your Lambda Function can use at runtime. Defaults to 128. | number |`"128"`| no |
180
-
| name | Name \(e.g. `app` or `cluster`\). | string |`""`| no |
181
-
| names | A unique name for your Lambda Layer. | list |`<list>`| no |
182
-
| principals | The principal who is getting this permission. e.g. s3.amazonaws.com, an AWS account ID, or any valid AWS service principal such as events.amazonaws.com or sns.amazonaws.com. | list |`<list>`| no |
183
-
| publish | Whether to publish creation/change as new Lambda Function Version. Defaults to false. | bool |`"false"`| no |
184
-
| qualifiers | Query parameter to specify function version or alias name. The permission will then apply to the specific qualified ARN. e.g. arn:aws:lambda:aws-region:acct-id:function:function-name:2 | list |`<list>`| no |
185
-
| reserved\_concurrent\_executions | The amount of reserved concurrent executions for this lambda function. A value of 0 disables lambda from being triggered and -1 removes any concurrency limitations. Defaults to Unreserved Concurrency Limits -1. | number |`"-1"`| no |
186
-
| runtime | Runtimes. | string | n/a | yes |
187
-
| s3\_bucket | The S3 bucket location containing the function's deployment package. Conflicts with filename. This bucket must reside in the same AWS region where you are creating the Lambda function. | string |`""`| no |
188
-
| s3\_buckets | The S3 bucket location containing the function's deployment package. Conflicts with filename. This bucket must reside in the same AWS region where you are creating the Lambda function. | list |`<list>`| no |
189
-
| s3\_keies | The S3 key of an object containing the function's deployment package. Conflicts with filename. | list |`<list>`| no |
190
-
| s3\_key | The S3 key of an object containing the function's deployment package. Conflicts with filename. | string |`""`| no |
191
-
| s3\_object\_version | The object version containing the function's deployment package. Conflicts with filename. | string |`""`| no |
192
-
| s3\_object\_versions | The object version containing the function's deployment package. Conflicts with filename. | list |`<list>`| no |
193
-
| security\_group\_ids | Security group ids for vpc config. | list |`<list>`| no |
194
-
| source\_accounts | This parameter is used for S3 and SES. The AWS account ID \(without a hyphen\) of the source owner. | list |`<list>`| no |
195
-
| source\_arns | When granting Amazon S3 or CloudWatch Events permission to invoke your function, you should specify this field with the Amazon Resource Name \(ARN\) for the S3 Bucket or CloudWatch Events Rule as its value. This ensures that only events generated from the specified bucket or rule can invoke the function. | list |`<list>`| no |
196
-
| statement\_ids | A unique statement identifier. By default generated by Terraform. | list |`<list>`| no |
197
-
| subnet\_ids | Subnet ids for vpc config. | list |`<list>`| no |
| event\_source\_tokens | The Event Source Token to validate. Used with Alexa Skills. |`list`|`[]`| no |
174
+
| filename | The path to the function's deployment package within the local filesystem. If defined, The s3\_-prefixed options cannot be used. |`any`|`null`| no |
175
+
| handler | The function entrypoint in your code. |`string`| n/a | yes |
176
+
| iam\_actions | The actions for Iam Role Policy. |`list`| <pre>[<br> "logs:CreateLogStream",<br> "logs:CreateLogGroup",<br> "logs:PutLogEvents"<br>]</pre> | no |
177
+
| kms\_key\_arn | The ARN for the KMS encryption key. |`string`|`""`| no |
178
+
| label\_order | Label order, e.g. `name`,`application`. |`list`|`[]`| no |
179
+
| layer\_filenames | The path to the function's deployment package within the local filesystem. If defined, The s3\_-prefixed options cannot be used. |`list`|`[]`| no |
180
+
| layers | List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function. |`any`|`null`| no |
181
+
| license\_infos | License info for your Lambda Layer. See License Info. |`list`|`[]`| no |
182
+
| managedby | ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'. |`string`|`"[email protected]"`| no |
183
+
| memory\_size | Amount of memory in MB your Lambda Function can use at runtime. Defaults to 128. |`number`|`128`| no |
184
+
| name | Name (e.g. `app` or `cluster`). |`string`|`""`| no |
185
+
| names | A unique name for your Lambda Layer. |`list`|`[]`| no |
186
+
| principals | The principal who is getting this permission. e.g. s3.amazonaws.com, an AWS account ID, or any valid AWS service principal such as events.amazonaws.com or sns.amazonaws.com. |`list`|`[]`| no |
187
+
| publish | Whether to publish creation/change as new Lambda Function Version. Defaults to false. |`bool`|`false`| no |
188
+
| qualifiers | Query parameter to specify function version or alias name. The permission will then apply to the specific qualified ARN. e.g. arn:aws:lambda:aws-region:acct-id:function:function-name:2 |`list`|`[]`| no |
189
+
| reserved\_concurrent\_executions | The amount of reserved concurrent executions for this lambda function. A value of 0 disables lambda from being triggered and -1 removes any concurrency limitations. Defaults to Unreserved Concurrency Limits -1. |`number`|`-1`| no |
190
+
| runtime | Runtimes. |`string`| n/a | yes |
191
+
| s3\_bucket | The S3 bucket location containing the function's deployment package. Conflicts with filename. This bucket must reside in the same AWS region where you are creating the Lambda function. |`any`|`null`| no |
192
+
| s3\_buckets | The S3 bucket location containing the function's deployment package. Conflicts with filename. This bucket must reside in the same AWS region where you are creating the Lambda function. |`list`|`[]`| no |
193
+
| s3\_keies | The S3 key of an object containing the function's deployment package. Conflicts with filename. |`list`|`[]`| no |
194
+
| s3\_key | The S3 key of an object containing the function's deployment package. Conflicts with filename. |`any`|`null`| no |
195
+
| s3\_object\_version | The object version containing the function's deployment package. Conflicts with filename. |`any`|`null`| no |
196
+
| s3\_object\_versions | The object version containing the function's deployment package. Conflicts with filename. |`list`|`[]`| no |
197
+
| security\_group\_ids | Security group ids for vpc config. |`list`|`[]`| no |
198
+
| source\_accounts | This parameter is used for S3 and SES. The AWS account ID (without a hyphen) of the source owner. |`list`|`[]`| no |
199
+
| source\_arns | When granting Amazon S3 or CloudWatch Events permission to invoke your function, you should specify this field with the Amazon Resource Name (ARN) for the S3 Bucket or CloudWatch Events Rule as its value. This ensures that only events generated from the specified bucket or rule can invoke the function. |`list`|`[]`| no |
200
+
| statement\_ids | A unique statement identifier. By default generated by Terraform. |`list`|`[]`| no |
201
+
| subnet\_ids | Subnet ids for vpc config. |`list`|`[]`| no |
202
+
| tags | Additional tags (e.g. map(`BusinessUnit`,`XYZ`). |`map`|`{}`| no |
203
+
| timeout | The amount of time your Lambda Function has to run in seconds. Defaults to 3. |`number`|`3`| no |
204
+
| variables | A map that defines environment variables for the Lambda function. |`map`|`{}`| no |
201
205
202
206
## Outputs
203
207
204
208
| Name | Description |
205
209
|------|-------------|
206
-
| arn | The Amazon Resource Name \(ARN\) identifying your Lambda Function. |
210
+
| arn | The Amazon Resource Name (ARN) identifying your Lambda Function. |
207
211
| tags | A mapping of tags to assign to the resource. |
208
212
209
213
210
214
211
215
212
216
## Testing
213
-
In this module testing is performed with [terratest](https://github.com/gruntwork-io/terratest) and it creates a small piece of infrastructure, matches the output like ARN, ID and Tags name etc and destroy infrastructure in your AWS account. This testing is written in GO, so you need a [GO environment](https://golang.org/doc/install) in your system.
217
+
In this module testing is performed with [terratest](https://github.com/gruntwork-io/terratest) and it creates a small piece of infrastructure, matches the output like ARN, ID and Tags name etc and destroy infrastructure in your AWS account. This testing is written in GO, so you need a [GO environment](https://golang.org/doc/install) in your system.
214
218
215
219
You need to run the following command in the testing folder:
216
220
```hcl
@@ -219,7 +223,7 @@ You need to run the following command in the testing folder:
219
223
220
224
221
225
222
-
## Feedback
226
+
## Feedback
223
227
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-aws-lambda/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]).
224
228
225
229
If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-aws-lambda)!
0 commit comments