如果在使用 AWS App Runner 时出现“Error in assuming instance role”错误,可能是由于实例角色的权限不足导致的。为解决此问题,您可以通过以下方法修改实例角色的策略:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "AppRunnerAccess", "Effect": "Allow", "Action": [ "apprunner:CreateService", "apprunner:DescribeService", "apprunner:ListServices", "apprunner:DeleteService", "apprunner:UpdateService", "apprunner:CreateConnection", "apprunner:DescribeConnection", "apprunner:ListConnections", "apprunner:DeleteConnection", "apprunner:UpdateConnection", "apprunner:AssociateCustomDomain", "apprunner:DisassociateCustomDomain" ], "Resource": "*" } ] }