mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-10-01 15:13:11 +00:00
fix(infra): drop prod-only authorizer import so dev can create it (PLAT-210)
The PLAT-102 import is already in meal-order-manager-prod state. A shared import block fails in seahaven-dev because the permission does not exist there.
This commit is contained in:
parent
e35260a732
commit
8a0fc0b9a3
1 changed files with 3 additions and 7 deletions
|
|
@ -114,13 +114,9 @@ resource "aws_lambda_permission" "api_route" {
|
|||
|
||||
# Grant API Gateway permission to invoke the admin authorizer Lambda. Source ARN
|
||||
# is the authorizer itself (not a route), matching the AWS HTTP API docs.
|
||||
# Import adopts the PLAT-102 live hotfix statement so the first apply does not
|
||||
# attempt a duplicate AddPermission.
|
||||
import {
|
||||
to = aws_lambda_permission.admin_authorizer
|
||||
id = "meal-order-manager-admin-authorizer/AllowApiGatewayInvokeAuthorizer"
|
||||
}
|
||||
|
||||
# The PLAT-102 live hotfix was imported into meal-order-manager-prod state; do
|
||||
# not keep a workspace-global import block or seahaven-dev cannot create this
|
||||
# permission.
|
||||
resource "aws_lambda_permission" "admin_authorizer" {
|
||||
statement_id = "AllowApiGatewayInvokeAuthorizer"
|
||||
action = "lambda:InvokeFunction"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue