Skip to content

Commit 56158db

Browse files
authored
Merge pull request #31 from fingerprintjs/rc
Release v0.6.0-rc.1
2 parents 1d5591b + 5d7e6c5 commit 56158db

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [0.6.0-rc.1](https://github.com/fingerprintjs/terraform-aws-fingerprint-cloudfront-proxy-integration/compare/v0.5.0...v0.6.0-rc.1) (2024-08-13)
2+
3+
4+
### Features
5+
6+
* proxy lambda description, timeout and memory size config ([aebb1c1](https://github.com/fingerprintjs/terraform-aws-fingerprint-cloudfront-proxy-integration/commit/aebb1c132ae44082b17effaf4f8d75cfc271a559))
7+
18
## [0.5.0](https://github.com/fingerprintjs/terraform-aws-fingerprint-cloudfront-proxy-integration/compare/v0.4.0...v0.5.0) (2024-08-12)
29

310

main.tf

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -68,25 +68,6 @@ data "aws_iam_policy_document" "assume_role" {
6868
}
6969
}
7070

71-
resource "aws_iam_role_policy" "fpjs_proxy_lambda_execution_policy" {
72-
name = "LambdaExecutionPolicy"
73-
role = aws_iam_role.fpjs_proxy_lambda.id
74-
75-
policy = jsonencode({
76-
Version = "2012-10-17"
77-
Statement = [
78-
{
79-
Action = [
80-
"logs:CreateLogGroup",
81-
"logs:CreateLogStream",
82-
"logs:PutLogEvents"
83-
]
84-
Effect = "Allow"
85-
Resource = "arn:aws:logs:*:*:*"
86-
}]
87-
})
88-
}
89-
9071
resource "aws_iam_role_policy" "fpjs_proxy_lambda" {
9172
name = "AWSSecretAccess"
9273
role = aws_iam_role.fpjs_proxy_lambda.id
@@ -118,12 +99,15 @@ data "aws_s3_object" "fpjs_integration_s3_bucket" {
11899
}
119100

120101
resource "aws_lambda_function" "fpjs_proxy_lambda" {
102+
description = "Fingerprint Proxy Lambda@Edge function"
121103
s3_bucket = data.aws_s3_object.fpjs_integration_s3_bucket.bucket
122104
s3_key = data.aws_s3_object.fpjs_integration_s3_bucket.key
123105
function_name = "fingerprint-pro-cloudfront-lambda-${local.integration_id}"
124106
role = aws_iam_role.fpjs_proxy_lambda.arn
125107
handler = "fingerprintjs-pro-cloudfront-lambda-function.handler"
126108
source_code_hash = data.aws_s3_object.fpjs_integration_s3_bucket.etag
109+
memory_size = 128
110+
timeout = 10
127111

128112
runtime = "nodejs20.x"
129113

0 commit comments

Comments
 (0)