Skip to content

Commit

Permalink
Update dev server IAM policy…
Browse files Browse the repository at this point in the history
… with changes made by James on the AWS Console.

I copied the policy¹ as JSON from AWS Console and pasted directly into
the file. After reordering to match the existing file contents, which
are sorted to be more readable rather than alphabetical, I confirmed
that this updated version of the file results in no changes with
`terraform plan`.

¹ arn:aws:iam::827581582529:policy/NextstrainDotOrgServerInstance-testing

Co-authored-by: James Hadfield <[email protected]>
  • Loading branch information
victorlin and jameshadfield committed Oct 4, 2023
1 parent cac3780 commit aed9400
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions aws/iam/policy/NextstrainDotOrgServerInstanceDev.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,35 @@
"arn:aws:s3:::nextstrain-groups/test/*",
"arn:aws:s3:::nextstrain-groups/test-private/*"
]
},
{
"Sid": "ListInventories",
"Action": [
"s3:ListBucket"
],
"Condition": {
"StringLike": {
"s3:prefix": [
"nextstrain-data/*",
"nextstrain-staging/*"
]
}
},
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::nextstrain-inventories"
]
},
{
"Sid": "GetInventories",
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::nextstrain-inventories/nextstrain-data/*",
"arn:aws:s3:::nextstrain-inventories/nextstrain-staging/*"
]
}
]
}

0 comments on commit aed9400

Please sign in to comment.