Skip to content

Commit 68bf2e6

Browse files
authored
feat: support archive folder (#20)
* feat: support archive folder * chore: update example access_key_rotate * chore: validate complete example * chore: validate complete example * chore: update lambda_layer example * chore: update simeple example * chore: update example README * chore: update README and CHANGELOG
1 parent 8017f04 commit 68bf2e6

26 files changed

+196
-214
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
All notable changes to this module will be documented in this file.
44

5+
## [v1.2.1] - 2023-10-19
6+
7+
### Changed
8+
9+
- Changed the method to zip folders instead of specifying individual files.
10+
- Adding resources: `null_resource.this`
11+
- Adding variables: `archive_file_trigger`
12+
- Removing variables: `file_globs`, `local.raise_file_globs_empty`
13+
514
## [v1.2.0] - 2023-09-12
615

716
### Added

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313

1414
| Name | Version |
1515
|---------------------------------------------------------------|---------|
16-
| <a name="provider_archive"></a> [archive](#provider\_archive) | 2.3.0 |
17-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.66.0 |
16+
| <a name="provider_archive"></a> [archive](#provider\_archive) | 2.4.0 |
17+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.19.0 |
18+
| <a name="provider_null"></a> [null](#provider\_null) | 3.2.1 |
1819

1920
## Modules
2021

@@ -37,6 +38,7 @@
3738
| [aws_lambda_permission.allow_serivce](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_permission) | resource |
3839
| [aws_s3_object.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_object) | resource |
3940
| [aws_ssm_parameter.params](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_parameter) | resource |
41+
| [null_resource.lambda](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
4042
| [archive_file.this](https://registry.terraform.io/providers/hashicorp/archive/latest/docs/data-sources/file) | data source |
4143
| [aws_caller_identity.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
4244
| [aws_iam_policy_document.assume_role_policy_doc](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
@@ -52,6 +54,7 @@
5254
| Name | Description | Type | Default | Required |
5355
|--------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|:--------:|
5456
| <a name="input_additional_lambda_role_policy_arns"></a> [additional\_lambda\_role\_policy\_arns](#input\_additional\_lambda\_role\_policy\_arns) | List of policies ARNs to attach to the lambda's created role | `list(string)` | `[]` | no |
57+
| <a name="input_archive_file_trigger"></a> [archive\_file\_trigger](#input\_archive\_file\_trigger) | The map of string that will be used to determine trigger to do archive | `map(string)` | `{}` | no |
5558
| <a name="input_bucket_name"></a> [bucket\_name](#input\_bucket\_name) | Name of the bucket to put the file in. Alternatively, an S3 access point ARN can be specified. | `string` | `""` | no |
5659
| <a name="input_cloudwatch_log_group_kms_key_arn"></a> [cloudwatch\_log\_group\_kms\_key\_arn](#input\_cloudwatch\_log\_group\_kms\_key\_arn) | The ARN for the KMS encryption key. | `string` | `null` | no |
5760
| <a name="input_cloudwatch_log_retention_in_days"></a> [cloudwatch\_log\_retention\_in\_days](#input\_cloudwatch\_log\_retention\_in\_days) | Retention day for cloudwatch log group | `number` | `90` | no |
@@ -60,7 +63,6 @@
6063
| <a name="input_dead_letter_target_arn"></a> [dead\_letter\_target\_arn](#input\_dead\_letter\_target\_arn) | Dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. | `string` | `null` | no |
6164
| <a name="input_environment"></a> [environment](#input\_environment) | Environment Variable used as a prefix | `string` | n/a | yes |
6265
| <a name="input_environment_variables"></a> [environment\_variables](#input\_environment\_variables) | A map that defines environment variables for the Lambda Function. | `map(string)` | `{}` | no |
63-
| <a name="input_file_globs"></a> [file\_globs](#input\_file\_globs) | list of files or globs that you want included from the source\_code\_dir | `list(string)` | `[]` | no |
6466
| <a name="input_handler"></a> [handler](#input\_handler) | Function entrypoint in your code. | `string` | n/a | yes |
6567
| <a name="input_is_create_cloudwatch_log_group"></a> [is\_create\_cloudwatch\_log\_group](#input\_is\_create\_cloudwatch\_log\_group) | Whether to create cloudwatch log group or not | `bool` | `true` | no |
6668
| <a name="input_is_create_default_kms"></a> [is\_create\_default\_kms](#input\_is\_create\_default\_kms) | Whether to create cloudwatch log group kms or not | `bool` | `true` | no |

0 commit comments

Comments
 (0)