Skip to content

Commit 9fac559

Browse files
authored
update APIGW permission to targetted rest api id
1 parent 5603ad8 commit 9fac559

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

data.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ data "aws_iam_policy_document" "update_lambda" {
4343
"apigateway:POST",
4444
"apigateway:PUT",
4545
]
46-
resources = [
47-
var.apigw_arn,
48-
]
46+
resources = ["arn:aws:apigateway:${data.aws_region.current.name}::/restapis/${var.apigw_id}/*"]
4947
}
5048
}
5149
}

0 commit comments

Comments
 (0)