$ aws lambda list-functions --query 'Functions[].[FunctionName, MemorySize]' --output text | grep myproject
myproject-dev 384
myproject-production 512
myproject-staging 512
myproject-qa 384
$ aws lambda list-functions --query 'Functions[].[FunctionName, MemorySize]' --output text | grep myproject
myproject-dev 384
myproject-production 512
myproject-staging 512
myproject-qa 384