Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.

Commit 0b046cd

Browse files
committed
Fixed error with CloudFront Lambda@Edge function
1 parent f2321bd commit 0b046cd

File tree

7 files changed

+10
-4
lines changed

7 files changed

+10
-4
lines changed

CHANGELOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
terraform-aws-cognito-auth-0.3.2 (2018-12-27)
2+
3+
* Updated all dependencies to fix security vulnerabilities
4+
* Moved common dependencies to top-level for faster builds
5+
* Fixed error with CloudFront Lambda@Edge function
6+
17
terraform-aws-cognito-auth-0.3.1 (2018-09-10)
28

39
* Fixed registration error for empty email address

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Add the following module to your Terraform configuration and apply it:
8686
``` hcl
8787
module "cognito-auth" {
8888
source = "github.com/squidfunk/terraform-aws-cognito-auth"
89-
version = "0.3.0"
89+
version = "0.3.2"
9090
9191
namespace = "<namespace>"
9292
region = "<region>"
@@ -200,7 +200,7 @@ configuration and apply it:
200200
``` hcl
201201
module "cognito-auth" {
202202
source = "github.com/squidfunk/terraform-aws-cognito-auth"
203-
version = "0.3.0"
203+
version = "0.3.2"
204204
205205
namespace = "example-auth"
206206
region = "us-east-1"

modules/api/lambda/dist.zip

0 Bytes
Binary file not shown.

modules/identity/lambda/dist.zip

0 Bytes
Binary file not shown.

modules/message/lambda/dist.zip

4.32 KB
Binary file not shown.

modules/web/lambda/dist.zip

3 Bytes
Binary file not shown.

modules/web/lambda/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ import {
3838
*
3939
* @return Promise resolving with modified response
4040
*/
41-
export function handler(
41+
export async function handler(
4242
event: CloudFrontResponseEvent
43-
): CloudFrontResponse {
43+
): Promise<CloudFrontResponse> {
4444
const response = event.Records[0].cf.response
4545

4646
/* Define security headers */

0 commit comments

Comments
 (0)