mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-09-30 06:33:12 +00:00
fix(apigateway): drop orphaned authorizer invoke role from state (#137)
Apply destroyed the inline policy then failed deleting the role on iam:ListInstanceProfilesForRole; the role was removed out of band.
This commit is contained in:
parent
60abc9fb50
commit
10c86f2de6
1 changed files with 10 additions and 0 deletions
|
|
@ -123,3 +123,13 @@ resource "aws_lambda_permission" "admin_authorizer" {
|
|||
principal = "apigateway.amazonaws.com"
|
||||
source_arn = "${aws_apigatewayv2_api.order_api.execution_arn}/authorizers/${aws_apigatewayv2_authorizer.admin_google.id}"
|
||||
}
|
||||
|
||||
# PLAT-102 follow-up: role already deleted in AWS after apply failed on
|
||||
# iam:ListInstanceProfilesForRole. Drop from state without a destroy call.
|
||||
removed {
|
||||
from = aws_iam_role.admin_authorizer_invoke
|
||||
|
||||
lifecycle {
|
||||
destroy = false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue