Skip to content

Commit 12b4eba

Browse files
authored
Add a ReadOnlyExtraAccess policy (#415)
1 parent fbddaa8 commit 12b4eba

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

infrastructure/policies.tf

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,26 @@ resource "aws_iam_policy" "ssm_access_policy" {
1717
]
1818
})
1919
}
20+
21+
resource "aws_iam_policy" "read_only_role_extra_permissions" {
22+
name = "ReadOnlyExtraAccess"
23+
policy = jsonencode({
24+
Version = "2012-10-17",
25+
Statement = [
26+
{
27+
Effect = "Allow",
28+
Action = [
29+
"kms:Decrypt",
30+
],
31+
Resource = [
32+
"arn:aws:lambda:eu-west-2:${data.aws_caller_identity.current.account_id}:function:*",
33+
]
34+
}
35+
]
36+
})
37+
tags = {
38+
Name = "ReadOnlyExtraAccess"
39+
Workspace = "core"
40+
}
41+
}
42+

0 commit comments

Comments
 (0)