AWS SAM - 'Encountered unsupported property CodeUri' error when deploying packaged template
The reason for AWS SAM not removing CodeUri is incorrect resource type - it should be AWS::Serverless::Function
and not AWS::Lambda::Function
.
After this change, CodeUri is removed from the packaged template.