Skip to content

Commit 670e72f

Browse files
authored
Merge pull request #48 from fingerprintjs/fix/INTER-1311-managed-policy-arns-deprecated
fix: remove usage of deprecated managed_policy_arns attribute
2 parents 3d64edf + 07e97ae commit 670e72f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,15 @@ resource "aws_iam_role_policy" "fpjs_proxy_lambda" {
8686
})
8787
}
8888

89+
resource "aws_iam_role_policy_attachment" "fpjs_proxy_lambda" {
90+
role = aws_iam_role.fpjs_proxy_lambda.name
91+
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
92+
}
93+
8994
resource "aws_iam_role" "fpjs_proxy_lambda" {
9095
name = "fingerprint-pro-lambda-role-${local.integration_id}"
9196
permissions_boundary = var.fpjs_proxy_lambda_role_permissions_boundary_arn
9297
assume_role_policy = data.aws_iam_policy_document.assume_role.json
93-
managed_policy_arns = ["arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"]
9498
}
9599

96100
data "aws_s3_object" "fpjs_integration_s3_bucket" {

0 commit comments

Comments
 (0)