- Newest
- Most votes
- Most comments
Since the IAM Simulator shows 'Allowed' and you've already ruled out SCPs/Boundaries, this specific behavior often points to two hidden blockers:
-
KMS Key Permissions: If the Lambda is encrypted with a Customer Managed Key (CMK), you need explicit kms:Decrypt and kms:GenerateDataKey permissions for that key. The IAM Simulator often misses this dependency because it only evaluates the Lambda service action itself.
-
CloudTrail Error Details: Check AWS CloudTrail for the specific UpdateFunctionCode event. The errorMessage in the raw JSON log is usually much more descriptive than the generic CLI output and will pinpoint if it's a KMS issue, a VPC restriction, or a hidden Condition block in your policies.
Also, verify if Code Signing is enabled for the function, as this requires additional permissions (lambda:GetCodeSigningConfig) that are sometimes omitted in custom 'FullAccess' policies."
I had missed a 'Amazon Web Services: New Support case' email. In there it said 'Your AWS Account may have been inappropriately accessed by a third-party...' regard the use of a Key and that limitations had been applied to the account until i contacted AWS.
It would have been great if that message was visible when i logged in. Hopefully will be sorted quickly now
Hello.
Is it possible to update a Lambda function using an IAM user with the same policy attached, via the Management Console instead of the AWS CLI?
If you are running the AWS CLI on your local PC, please also check the credentials being loaded.
You may be loading incorrect credentials and therefore do not have permission to update Lambda.
https://repost.aws/articles/ARvcQCv8jdR8q9DMDLp7GWSw/priority-of-credentials-read-by-the-aws-cli
There may also be a problem with your AWS account.
Therefore, please contact AWS Support by opening a case under "Account and billing".
Inquiries under "Account and billing" can be made free of charge.
https://console.aws.amazon.com/support
Relevant content
- asked 2 years ago
- asked 3 years ago
- AWS OFFICIALUpdated 3 months ago

A KMS key issue is a good bet. Note that any KMS errors will also show in CloudTrail's default event history view in the current region. You can expose the "error code" column in the event history view and then search for the Event name "GenerateDataKey" or "Decrypt" to find any relevant errors, without having to scroll through dozens of pages of unrelated or read-only events.