Skip to content

Commit

Permalink
feat: compress api gateway permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOrangePuff committed May 23, 2024
1 parent cdfa5b0 commit a0f66d9
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions packages/serverless-deploy-iam/bin/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,20 +503,7 @@ export class ServiceDeployIAM extends cdk.Stack {
// Generated api key names are random so this cannot be limited to the service at this time
{
name: "API_GATEWAY",
resources: [`arn:aws:apigateway:${region}::/apikeys/*`],
actions: ["apigateway:GET", "apigateway:PATCH"],
},
{
name: "API_GATEWAY_RESTAPIS",
prefix: `arn:aws:apigateway:${region}::/restapis`,
qualifiers: [`/*/deployments`],
actions: ["apigateway:GET"],
},
// The serverless-api-gateway-throttling requires PATCH access using the deploy user to update maxRequestsPerSecond and maxConcurrentRequests
{
name: "API_GATEWAY",
prefix: `arn:aws:apigateway:${region}::/restapis/*/stages`,
qualifiers: [`*`],
resources: [`arn:aws:apigateway:${region}::*`],
actions: ["apigateway:GET", "apigateway:PATCH", "apigateway:POST"],
},
{
Expand Down

0 comments on commit a0f66d9

Please sign in to comment.