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
* Adds exclude_files option to archive
The undocumented excludes option to acrhive file is extremely helpful
when you have test code included in the same directory as the lambda
hashicorp/terraform-provider-archive#55
* Fix default values for archive ignore
Copy file name to clipboardExpand all lines: README.md
+42-30Lines changed: 42 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,39 +46,51 @@ module "lambda" {
46
46
Check [examples](./examples) for non-python examples.
47
47
48
48
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
49
+
## Requirements
50
+
51
+
No requirements.
52
+
53
+
## Providers
54
+
55
+
| Name | Version |
56
+
| ------- | ------- |
57
+
| archive | n/a |
58
+
| aws | n/a |
59
+
| null | n/a |
60
+
49
61
## Inputs
50
62
51
-
| Name | Description | Type | Default | Required |
52
-
|------|-------------|:----:|:-----:|:-----:|
53
-
| build\_command | This is the build command to execute. It can be provided as a relative path to the current working directory or as an absolute path. It is evaluated in a shell, and can use environment variables or Terraform variables. | string |`""`| no |
54
-
| build\_triggers | A map of values which should cause the build command to re-run. Values are meant to be interpolated references to variables or attributes of other resources. | list |`[]`| no |
55
-
| dead\_letter\_config | Nested block to configure the function's dead letter queue. | object |`"null"`| no |
56
-
| description | Description of what your Lambda Function does. | string |`""`| no |
57
-
| environment | A map that defines environment variables for the Lambda function. | object |`"null"`| no |
58
-
| function\_name | A unique name for your Lambda Function. | string | n/a | yes |
59
-
| handler | The function entrypoint in your code. | string | n/a | yes |
60
-
| iam\_role\_name\_prefix | The prefix string for the name of IAM role for the lambda function. | string |`""`| no |
61
-
| kms\_key\_arn | The ARN for the KMS encryption key. | string |`"null"`| no |
62
-
| kms\_key\_id | The ARN of the KMS Key to use when encrypting log data. | string |`"null"`| no |
63
-
| layers | List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function. | list |`[]`| no |
64
-
| memory\_size | Amount of memory in MB your Lambda Function can use at runtime. | string |`"128"`| no |
65
-
| output\_path | A path to which the source directory is archived before uploading to AWS. | string | n/a | yes |
66
-
| policy\_arns | A list of IAM policy ARNs attached to the lambda function. | list |`[]`| no |
67
-
| publish | Whether to publish creation/change as new Lambda Function Version. | string |`"false"`| no |
68
-
| 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. | string |`"-1"`| no |
69
-
| retention\_in\_days | Specifies the number of days you want to retain log events in the specified log group. | number |`"null"`| no |
70
-
| runtime | The identifier of the function's runtime. | string | n/a | yes |
71
-
| source\_dir | A path to the directory which contains source files. | string | n/a | yes |
72
-
| tags | A mapping of tags to assign to resources. | map |`{ "Terraform": "true" }`| no |
73
-
| timeout | The maximum number of seconds the lambda function to run until timeout. | string |`"3"`| no |
74
-
| tracing\_config | Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If Active, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision. | object |`"null"`| no |
75
-
| vpc\_config | Provide this to allow your function to access your VPC. | string |`"null"`| no |
63
+
| Name | Description | Type | Default | Required |
| build\_command | This is the build command to execute. It can be provided as a relative path to the current working directory or as an absolute path. It is evaluated in a shell, and can use environment variables or Terraform variables. |`string`|`""`| no |
66
+
| build\_triggers | A map of values which should cause the build command to re-run. Values are meant to be interpolated references to variables or attributes of other resources. |`list(string)`|`[]`| no |
67
+
| dead\_letter\_config | Nested block to configure the function's dead letter queue. | <pre>object({<br> target_arn = string<br> })</pre> |`null`| no |
68
+
| description | Description of what your Lambda Function does. |`string`|`""`| no |
69
+
| environment | A map that defines environment variables for the Lambda function. | <pre>object({<br> variables = map(string)<br> })</pre> |`null`| no |
70
+
| exclude\_files | A list of directories or folders to ignore, e.g.<br>exclude\_files = ["test", "src/\*\*/\*.ts"]|`list(string)`| n/a | yes |
71
+
| function\_name | A unique name for your Lambda Function. |`string`| n/a | yes |
72
+
| handler | The function entrypoint in your code. |`string`| n/a | yes |
73
+
| iam\_role\_name\_prefix | The prefix string for the name of IAM role for the lambda function. |`string`|`""`| no |
74
+
| kms\_key\_arn | The ARN for the KMS encryption key. |`string`|`null`| no |
75
+
| kms\_key\_id | The ARN of the KMS Key to use when encrypting log data. |`string`|`null`| no |
76
+
| layers | List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function. |`list(string)`|`[]`| no |
77
+
| memory\_size | Amount of memory in MB your Lambda Function can use at runtime. |`number`|`128`| no |
78
+
| output\_path | A path to which the source directory is archived before uploading to AWS. |`string`| n/a | yes |
79
+
| policy\_arns | A list of IAM policy ARNs attached to the lambda function. |`list(string)`|`[]`| no |
80
+
| publish | Whether to publish creation/change as new Lambda Function Version. |`string`|`false`| no |
81
+
| 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. |`string`|`-1`| no |
82
+
| retention\_in\_days | Specifies the number of days you want to retain log events in the specified log group. |`number`|`null`| no |
83
+
| runtime | The identifier of the function's runtime. |`string`| n/a | yes |
84
+
| source\_dir | A path to the directory which contains source files. |`string`| n/a | yes |
85
+
| tags | A mapping of tags to assign to resources. |`map`| <pre>{<br> "Terraform": "true"<br>}</pre> | no |
86
+
| timeout | The maximum number of seconds the lambda function to run until timeout. |`number`|`3`| no |
87
+
| tracing\_config | Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If Active, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision. | <pre>object({<br> mode = string<br> })</pre> |`null`| no |
88
+
| vpc\_config | Provide this to allow your function to access your VPC. |`any`|`null`| no |
76
89
77
90
## Outputs
78
91
79
-
| Name | Description |
80
-
|------|-------------|
81
-
| iam\_role | The IAM Role which the lambda function is attached. |
description="This is the build command to execute. It can be provided as a relative path to the current working directory or as an absolute path. It is evaluated in a shell, and can use environment variables or Terraform variables."
16
+
type=string
16
17
default=""
17
18
}
18
19
@@ -23,22 +24,35 @@ variable "build_triggers" {
23
24
24
25
variable"source_dir" {
25
26
description="A path to the directory which contains source files."
27
+
type=string
26
28
}
27
29
28
30
variable"output_path" {
29
31
description="A path to which the source directory is archived before uploading to AWS."
description="Description of what your Lambda Function does."
103
123
default=""
104
124
}
105
125
106
126
variable"layers" {
107
127
description="List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function."
128
+
type=list(string)
108
129
default=[]
109
130
}
110
131
111
132
variable"reserved_concurrent_executions" {
112
133
description="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."
134
+
type=string
113
135
default=-1
114
136
}
115
137
116
138
variable"publish" {
117
139
description="Whether to publish creation/change as new Lambda Function Version."
0 commit comments