Skip to content

Commit

Permalink
aws/iam: Allow server to read s3://nextstrain-inventories/resources.j…
Browse files Browse the repository at this point in the history
…son.gz

Based on changes @jameshadfield made in the AWS Console, but stripped
down to just the single object necessary by the current consuming code.
  • Loading branch information
tsibley authored and jameshadfield committed Oct 19, 2023
1 parent b1de8ee commit 354a458
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions aws/iam/policy/NextstrainDotOrgServerInstance-testing.tftpl.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@
"Resource": [
"arn:aws:cognito-idp:us-east-1:827581582529:userpool/${COGNITO_USER_POOL_ID}"
]
},
{
"Sid": "GetResourcesIndex",
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::nextstrain-inventories/resources.json.gz"
]
}
]
}
10 changes: 10 additions & 0 deletions aws/iam/policy/NextstrainDotOrgServerInstance.tftpl.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@
"Resource": [
"arn:aws:cognito-idp:us-east-1:827581582529:userpool/${COGNITO_USER_POOL_ID}"
]
},
{
"Sid": "GetResourcesIndex",
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::nextstrain-inventories/resources.json.gz"
]
}
]
}

0 comments on commit 354a458

Please sign in to comment.