Merge pull request #101 from Sea-Haven-Industries/fix/meal-order-passrole-apigateway
Some checks are pending
Deploy / deploy-management (push) Waiting to run
Deploy / deploy-external-dev (push) Waiting to run
Deploy / deploy-security (push) Waiting to run
Deploy / deploy-dev (push) Waiting to run
Deploy / deploy-prod (push) Waiting to run

fix(iam): allow PassRole to apigateway for meal-order authorizer (PLAT-97)
This commit is contained in:
Adam Moussa 2026-08-10 14:05:35 -04:00 • committed by GitHub
commit 84aa1a803e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1881,6 +1881,18 @@ Resources:
Action:
- ssm:DescribeParameters
Resource: "*"
# API Gateway Lambda authorizer requires PassRole to
# apigateway.amazonaws.com. Shared HcptfIamManagementPolicy only
# grants PassRole to lambda.amazonaws.com (see IAMPassRole comment).
- Sid: MealOrderPassRoleApiGateway
Effect: Allow
Action:
- iam:PassRole
Resource:
- !Sub "arn:aws:iam::${AWS::AccountId}:role/tf-managed/meal-order-manager-*"
Condition:
StringEquals:
"iam:PassedToService": "apigateway.amazonaws.com"
- Sid: ReadWafWebAcl
Effect: Allow
Action: