Lambda Managed Instances operator role requires AWSLambdaManagedEC2ResourceOperator
Set up a Capacity Provider with an operator role for Lambda Managed Instances, ran publish-version, and the version went to Failed.
"StateReason": "The function's execution role doesn't have permission to perform this operation.",
"StateReasonCode": "InsufficientRolePermissions"The error gives no hint about which permission is missing. I escalated from AmazonEC2FullAccess → AWSLambda_FullAccess → AdministratorAccess — all failed with the same error.
The answer is AWSLambdaManagedEC2ResourceOperator, a dedicated managed policy.
aws iam attach-role-policy --role-name MyOperatorRole \
--policy-arn arn:aws:iam::aws:policy/AWSLambdaManagedEC2ResourceOperatorThe Getting Started guide documents this, but the error message won't lead you there. Generic EC2 permissions likely don't cover the internal operations Lambda uses (instance profiles, network config, etc.).
