Skip to content

Commit

Permalink
fix: Add SpeedRestrictions table permissions to policy.json
Browse files Browse the repository at this point in the history
  • Loading branch information
idreyn committed Jul 14, 2023
1 parent d33afb9 commit 026a789
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions server/.chalice/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,45 @@
"Version": "2012-10-17",
"Statement": [
{
"Action": ["logs:CreateLogGroup", "logs:CreateLogStream", "logs:PutLogEvents"],
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Effect": "Allow",
"Resource": "arn:*:logs:*:*:*"
},
{
"Action": ["s3:ListBucket"],
"Action": [
"s3:ListBucket"
],
"Effect": "Allow",
"Resource": ["arn:aws:s3:::tm-mbta-performance"]
"Resource": [
"arn:aws:s3:::tm-mbta-performance"
]
},
{
"Action": ["s3:GetObject"],
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": ["arn:aws:s3:::tm-mbta-performance/*"]
"Resource": [
"arn:aws:s3:::tm-mbta-performance/*"
]
},
{
"Action": ["dynamodb:Query"],
"Action": [
"dynamodb:Query"
],
"Effect": "Allow",
"Resource": [
"arn:aws:dynamodb:*:*:table/DeliveredTripMetrics",
"arn:aws:dynamodb:*:*:table/DeliveredTripMetricsWeekly",
"arn:aws:dynamodb:*:*:table/DeliveredTripMetricsMonthly",
"arn:aws:dynamodb:*:*:table/ScheduledServiceDaily",
"arn:aws:dynamodb:*:*:table/Ridership"
"arn:aws:dynamodb:*:*:table/Ridership",
"arn:aws:dynamodb:*:*:table/SpeedRestrictions"
]
}
]
}
}

0 comments on commit 026a789

Please sign in to comment.