Skip to content

Commit 2c10aa6

Browse files
authored
[PRM-752] Allow ReadOnly users to save/delete CloudWatch saved queries (#636)
1 parent fb2a085 commit 2c10aa6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

infrastructure/policies.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ resource "aws_iam_policy" "read_only_role_extra_permissions" {
3232
Resource = [
3333
"arn:aws:kms:eu-west-2:${data.aws_caller_identity.current.account_id}:key/*",
3434
]
35+
},
36+
{
37+
Effect = "Allow",
38+
Action = [
39+
"logs:PutQueryDefinition",
40+
"logs:DeleteQueryDefinition",
41+
],
42+
Resource = [
43+
"arn:aws:logs:eu-west-2:${data.aws_caller_identity.current.account_id}:log-group::log-stream:",
44+
]
3545
}
3646
]
3747
})

0 commit comments

Comments
 (0)