Skip to content

Commit 5e3f2c5

Browse files
Merge pull request #45 from GSA/update
adds filebase64sha256 for lambda source_code_hash
2 parents e485648 + 185d81f commit 5e3f2c5

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

handler/.golangci.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,6 @@ linters-settings:
2424
line-length: 140
2525
goimports:
2626
local-prefixes: github.com/golangci/golangci-lint
27-
gocritic:
28-
enabled-tags:
29-
- diagnostic
30-
- experimental
31-
- opinionated
32-
- performance
33-
- style
34-
disabled-checks:
35-
- dupImport # https://github.com/go-critic/go-critic/issues/845
36-
- ifElseChain
37-
- octalLiteral
38-
- whyNoLint
39-
- wrapperFunc
4027
funlen:
4128
lines: 100
4229
statements: 50

lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resource "aws_lambda_function" "lambda_function" {
44
description = "Creates report of AWS Services in Organization accounts and saves to Excel spreadsheet in S3 bucket"
55
role = aws_iam_role.iam_role.arn
66
handler = "grace-inventory-lambda"
7-
source_code_hash = filesha256(var.source_file)
7+
source_code_hash = filebase64sha256(var.source_file)
88
kms_key_arn = aws_kms_key.kms_key.arn
99
runtime = "go1.x"
1010
timeout = 900

0 commit comments

Comments
 (0)