Skip to content

Commit 8075257

Browse files
committed
NRL-1411 Specify actions in iam role
1 parent 551c084 commit 8075257

File tree

1 file changed

+4
-3
lines changed
  • terraform/account-wide-infrastructure/modules/glue

1 file changed

+4
-3
lines changed

terraform/account-wide-infrastructure/modules/glue/iam.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ data "aws_iam_policy_document" "glue_service" {
6363

6464
resources = [
6565
"arn:aws:logs:*:*:*:/aws-glue/*",
66-
# "arn:aws:logs:*:*:*:/customlogs/*"
6766
]
6867

6968
effect = "Allow"
@@ -83,7 +82,9 @@ data "aws_iam_policy_document" "glue_service" {
8382

8483
statement {
8584
actions = [
86-
"cloudwatch:*",
85+
"cloudwatch:Get*",
86+
"cloudwatch:List*",
87+
"cloudwatch:Put*",
8788
]
8889
resources = [
8990
"*"
@@ -97,7 +98,7 @@ data "aws_iam_policy_document" "glue_service" {
9798
]
9899
effect = "Allow"
99100
resources = [
100-
"*"
101+
"arn:aws:iam::*:role/AWSGlueServiceRole*"
101102
]
102103
}
103104
}

0 commit comments

Comments
 (0)