# GE in AWS Lambda

**URL:** <https://discourse.greatexpectations.io/t/ge-in-aws-lambda/458>\
**Category:** Feedback\
**Created:** [October 19, 2020, 3:09pm UTC](https://discourse.greatexpectations.io/t/ge-in-aws-lambda/458 "2020-10-19T15:09:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mezaf](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@mezaf](https://discourse.greatexpectations.io/u/mezaf)\
**Post date:** [October 19, 2020, 3:09pm UTC](https://discourse.greatexpectations.io/t/ge-in-aws-lambda/458/1 "2020-10-19T15:09:53Z")

</div>

My intention with this discussion is to bring up the possibility to have a slim version of GE that can be used within a lambda function. This is different than putting it into an EC2 instance to work, because I’m looking for to have a serverless event-driven function that runs QA/QC for files coming into S3 buckets as part of an entire serverless flow.

I’ve tested some other functions such as pandera, which worked perfectly within a Lambda function. The problem is the entire GE distribution is too big to put it into a package, and AWS have a hard limit of 250 MB when unzipped for each package.

I did some research and removed these libraries, and made it smaller to fit the requirement (barely):

- Notebook
- IPython widgets
- Jupyter client
- Jupyter core
- widgetsnbextensions

Can we have an official (better, mine is just removing things i guess won’t use) version of GE for AWS lambdas?

---

<div class="post-metadata">

**Author:** ![eugene.mandel](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/eugene.mandel/32/22_2.png) [@eugene.mandel](https://discourse.greatexpectations.io/u/eugene.mandel)\
**Post date:** [October 20, 2020, 5:40pm UTC](https://discourse.greatexpectations.io/t/ge-in-aws-lambda/458/2 "2020-10-20T17:40:17Z")

</div>

We don’t have an official distribution of Great Expectations for AWS Lambda yet, although we used it on Lambda internally. This is a great feature request!

---

<div class="post-metadata">

**Author:** ![mariamadalina](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mariamadalina](https://discourse.greatexpectations.io/u/mariamadalina)\
**Post date:** [March 29, 2022, 8:32pm UTC](https://discourse.greatexpectations.io/t/ge-in-aws-lambda/458/3 "2022-03-29T20:32:30Z")

</div>

Do you have some reproducible steps for removing the libraries?
