Skip to content

Commit

Permalink
modify lambda timeout/memory
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Sep 25, 2023
1 parent 05f2749 commit 8995722
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Lambdas/GitHubAPI/Verifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public enum Verifier {
var hmac = HMAC<SHA256>.init(key: secret)
hmac.update(data: requestBody)
let mac = hmac.finalize()
let expectedSignature = "sha256=" + mac.toHexDigest()
let expectedSignature = "sha256=\(mac.toHexDigest())"
guard signatureHeader == expectedSignature else {
throw Errors.signaturesDoNotMatch(header: signatureHeader, expected: expectedSignature)
}
Expand Down
16 changes: 8 additions & 8 deletions deploy/penny-discord-bot-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Resources:
Handler: handler
Role: !GetAtt lambdaIAMRole.Arn
Runtime: provided.al2
Timeout: 6
Timeout: 8

lambdaUsersRoutePermission:
Type: AWS::Lambda::Permission
Expand Down Expand Up @@ -188,7 +188,7 @@ Resources:
Handler: handler
Role: !GetAtt lambdaIAMRole.Arn
Runtime: provided.al2
Timeout: 6
Timeout: 8

lambdaSponsorsPermission:
Type: AWS::Lambda::Permission
Expand Down Expand Up @@ -342,7 +342,7 @@ Resources:
Handler: handler
Role: !GetAtt lambdaIAMRole.Arn
Runtime: provided.al2
Timeout: 6
Timeout: 8

lambdaAutoPingsRoutePermission:
Type: AWS::Lambda::Permission
Expand Down Expand Up @@ -397,7 +397,7 @@ Resources:
Handler: handler
Role: !GetAtt lambdaIAMRole.Arn
Runtime: provided.al2
Timeout: 6
Timeout: 8

lambdaFaqsRoutePermission:
Type: AWS::Lambda::Permission
Expand Down Expand Up @@ -452,7 +452,7 @@ Resources:
Handler: handler
Role: !GetAtt lambdaIAMRole.Arn
Runtime: provided.al2
Timeout: 6
Timeout: 8

lambdaAutoFaqsRoutePermission:
Type: AWS::Lambda::Permission
Expand Down Expand Up @@ -514,7 +514,7 @@ Resources:
Handler: handler
Role: !GetAtt lambdaIAMRole.Arn
Runtime: provided.al2
Timeout: 8
Timeout: 12

lambdaGHHooksRoutePermission:
Type: AWS::Lambda::Permission
Expand Down Expand Up @@ -566,11 +566,11 @@ Resources:
API_BASE_URL: !Sub https://ncy6caaavg.execute-api.${AWS::Region}amazonaws.com/prod
LOG_LEVEL: debug
FunctionName: !Sub ${GHOAuthFilename}
MemorySize: 256
MemorySize: 512
Handler: handler
Role: !GetAtt lambdaIAMRole.Arn
Runtime: provided.al2
Timeout: 6
Timeout: 8

lambdaGHOAuthRoutePermission:
Type: AWS::Lambda::Permission
Expand Down

0 comments on commit 8995722

Please sign in to comment.