Skip to content

Commit

Permalink
Merge pull request #45 from GSA/update
Browse files Browse the repository at this point in the history
adds filebase64sha256 for lambda source_code_hash
  • Loading branch information
bryanlalexander authored Jul 2, 2020
2 parents e485648 + 185d81f commit 5e3f2c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions handler/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,6 @@ linters-settings:
line-length: 140
goimports:
local-prefixes: github.com/golangci/golangci-lint
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
disabled-checks:
- dupImport # https://github.com/go-critic/go-critic/issues/845
- ifElseChain
- octalLiteral
- whyNoLint
- wrapperFunc
funlen:
lines: 100
statements: 50
Expand Down
2 changes: 1 addition & 1 deletion lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "aws_lambda_function" "lambda_function" {
description = "Creates report of AWS Services in Organization accounts and saves to Excel spreadsheet in S3 bucket"
role = aws_iam_role.iam_role.arn
handler = "grace-inventory-lambda"
source_code_hash = filesha256(var.source_file)
source_code_hash = filebase64sha256(var.source_file)
kms_key_arn = aws_kms_key.kms_key.arn
runtime = "go1.x"
timeout = 900
Expand Down

0 comments on commit 5e3f2c5

Please sign in to comment.