fix(iam): allow PassRole to apigateway for meal-order authorizer

This commit is contained in:
Adam Moussa 2026-08-10 13:46:12 -04:00
parent 35c1b96257
commit 6bb2d54814
No known key found for this signature in database

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: