We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e8743d commit 5696d65Copy full SHA for 5696d65
infrastructure/policies.tf
@@ -17,3 +17,26 @@ resource "aws_iam_policy" "ssm_access_policy" {
17
]
18
})
19
}
20
+
21
+resource "aws_iam_policy" "read_only_role_extra_permissions" {
22
+ count = local.is_sandbox ? 0 : 1
23
+ name = "ReadOnlyExtraAccess"
24
+ policy = jsonencode({
25
+ Version = "2012-10-17",
26
+ Statement = [
27
+ {
28
+ Effect = "Allow",
29
+ Action = [
30
+ "kms:Decrypt",
31
+ ],
32
+ Resource = [
33
+ "arn:aws:lambda:eu-west-2:${data.aws_caller_identity.current.account_id}:function:*",
34
+ ]
35
+ }
36
37
+ })
38
+ tags = {
39
+ Name = "ReadOnlyExtraAccess"
40
+ Workspace = "core"
41
42
+}
0 commit comments