Skip to content

Commit

Permalink
Merge pull request #31887 from meetreks/b-aws_lambda_function
Browse files Browse the repository at this point in the history
Bug Fix for ensuring lambda function not to deploy if source code hash does not change
  • Loading branch information
nam054 authored Jan 4, 2024
2 parents 7230c4b + c42a6bb commit 6e919e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changelog/29921.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_lambda_function: Ensure lambda does not get deployed if `source_code_hash` does not change.
```
7 changes: 4 additions & 3 deletions internal/service/lambda/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,10 @@ func ResourceFunction() *schema.Resource {
},
},
"source_code_hash": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Type: schema.TypeString,
Optional: true,
Computed: true,
DiffSuppressFunc: verify.SuppressMissingOptionalConfigurationBlock,
},
"source_code_size": {
Type: schema.TypeInt,
Expand Down

0 comments on commit 6e919e2

Please sign in to comment.