mirror of
https://github.com/Sea-Haven-Industries/seahaven-org-baseline.git
synced 2026-09-30 10:23:16 +00:00
fix(iam): allow PassRole to apigateway for meal-order authorizer
This commit is contained in:
parent
35c1b96257
commit
6bb2d54814
1 changed files with 12 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue