Skip to content

Commit 4a0367f

Browse files
committed
aws/iam: Allow server to read s3://nextstrain-inventories/resources.json.gz
Based on changes @jameshadfield made in the AWS Console, but stripped down to just the single object necessary by the current consuming code.
1 parent e4a6049 commit 4a0367f

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

aws/iam/policy/NextstrainDotOrgServerInstance-testing.tftpl.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@
5555
"Resource": [
5656
"arn:aws:cognito-idp:us-east-1:827581582529:userpool/${COGNITO_USER_POOL_ID}"
5757
]
58+
},
59+
{
60+
"Sid": "GetResourcesIndex",
61+
"Effect": "Allow",
62+
"Action": [
63+
"s3:GetObject"
64+
],
65+
"Resource": [
66+
"arn:aws:s3:::nextstrain-inventories/resources.json.gz"
67+
]
5868
}
5969
]
6070
}

aws/iam/policy/NextstrainDotOrgServerInstance.tftpl.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@
4444
"Resource": [
4545
"arn:aws:cognito-idp:us-east-1:827581582529:userpool/${COGNITO_USER_POOL_ID}"
4646
]
47+
},
48+
{
49+
"Sid": "GetResourcesIndex",
50+
"Effect": "Allow",
51+
"Action": [
52+
"s3:GetObject"
53+
],
54+
"Resource": [
55+
"arn:aws:s3:::nextstrain-inventories/resources.json.gz"
56+
]
4757
}
4858
]
4959
}

0 commit comments

Comments
 (0)