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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
5
5
<aname="unreleased"></a>
6
6
## [Unreleased]
7
7
8
-
8
+
- feat: Add `ignore_source_code_hash` variable to allow the lambda function resource to be managed by terraform but have the function code managed externally
### Lambda Function or Lambda Layer with the deployable artifact maintained separately from the infrastructure
110
+
111
+
If you want to manage function code and infrastructure resources (such as IAM permissions, policies, events, etc) in separate flows (e.g., different repositories, teams, CI/CD pipelines).
112
+
113
+
Disable source code tracking to turn off deployments (and rollbacks) using the module by setting `ignore_source_code_hash = true` and deploy a _dummy function_.
114
+
115
+
When the infrastructure and the dummy function is deployed, you can use external tool to update the source code of the function (eg, using [AWS CLI](https://docs.aws.amazon.com/cli/latest/reference/lambda/update-function-code.html)) and keep using this module via Terraform to manage the infrastructure.
116
+
117
+
Be aware that changes in `local_existing_package` value may trigger deployment via Terraform.
### Lambda Function with existing package (prebuilt) stored in S3 bucket
110
136
111
137
Note that this module does not copy prebuilt packages into S3 bucket. This module can only store packages it builds locally and in S3 bucket.
@@ -664,6 +690,7 @@ No modules.
664
690
| <aname="input_function_name"></a> [function\_name](#input\_function\_name)| A unique name for your Lambda Function |`string`|`""`| no |
665
691
| <aname="input_handler"></a> [handler](#input\_handler)| Lambda Function entrypoint in your code |`string`|`""`| no |
666
692
| <aname="input_hash_extra"></a> [hash\_extra](#input\_hash\_extra)| The string to add into hashing function. Useful when building same source path for different functions. |`string`|`""`| no |
693
+
| <aname="input_ignore_source_code_hash"></a> [ignore\_source\_code\_hash](#input\_ignore\_source\_code\_hash)| Whether to ignore changes to the function's source code hash. Set to true if you manage infrastructure and code deployments separately. |`bool`|`false`| no |
667
694
| <aname="input_image_config_command"></a> [image\_config\_command](#input\_image\_config\_command)| The CMD for the docker image |`list(string)`|`[]`| no |
668
695
| <aname="input_image_config_entry_point"></a> [image\_config\_entry\_point](#input\_image\_config\_entry\_point)| The ENTRYPOINT for the docker image |`list(string)`|`[]`| no |
669
696
| <aname="input_image_config_working_directory"></a> [image\_config\_working\_directory](#input\_image\_config\_working\_directory)| The working directory for the docker image |`string`|`null`| no |
0 commit comments