-
Notifications
You must be signed in to change notification settings - Fork 0
/
iam_policy_read_backups.tf
47 lines (46 loc) · 1.45 KB
/
iam_policy_read_backups.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Read-only access to backup buckets
# aws_iam_policy.read_backups:
resource "aws_iam_policy" "read_backups" {
description = "Allows the dev_users group read-only access to backups."
name = "read_backups"
path = "/"
policy = jsonencode(
{
Statement = [
{
Action = [
"s3:GetObject",
"s3:GetObjectVersion",
"s3:GetObjectTagging",
"s3:GetObjectVersionTagging",
"s3:ListBucket",
"s3:ListBucketVersions",
]
Effect = "Allow"
Resource = [
"arn:aws:s3:::chf-hydra-backup",
"arn:aws:s3:::chf-hydra-backup/*",
"arn:aws:s3:::scihist-digicoll-production-originals-backup",
"arn:aws:s3:::scihist-digicoll-production-originals-backup/*",
"arn:aws:s3:::scihist-digicoll-production-originals-video-backup",
"arn:aws:s3:::scihist-digicoll-production-originals-video-backup/*",
"arn:aws:s3:::scihist-digicoll-production-derivatives-backup",
"arn:aws:s3:::scihist-digicoll-production-derivatives-backup/*",
"arn:aws:s3:::scihist-digicoll-production-dzi-backup",
"arn:aws:s3:::scihist-digicoll-production-dzi-backup/*",
]
Sid = "readbackups"
},
]
Version = "2012-10-17"
}
)
tags = {
"backups" = ""
"read" = ""
}
tags_all = {
"backups" = ""
"read" = ""
}
}