#gcp (2024-06)
Google Cloud Platform
2024-06-18
![jonjitsu avatar](https://secure.gravatar.com/avatar/8d4169f1a7fd27bd9a11a25ccfed62c8.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0014-72.png)
Is it possible to deploy a GCP cloud function packaged as a container similar to aws lambda?
2024-06-19
![burnzy avatar](https://secure.gravatar.com/avatar/1306e73598857c8d80ad440ae6299c1a.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0011-72.png)
Hello @jonjitsu Long time! I don’t believe it’s possible, although cloud functions will get built and stored in Artifact Registry as a container image — you don’t get much control over that build process, besides being able to set a few environment vars to override a few options during build and/or runtime. As far as I’m aware, you can’t deploy directly from your own container. The better option there would be to use Cloud Run (or Cloud Run Jobs) for using your own custom container
![jonjitsu avatar](https://secure.gravatar.com/avatar/8d4169f1a7fd27bd9a11a25ccfed62c8.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0014-72.png)
Hey @burnzy! This is what I understood, I was just hoping it was more like AWS where you can create a container image and use it anywhere lambda/ecs/eks/codebuild.
![jonjitsu avatar](https://secure.gravatar.com/avatar/8d4169f1a7fd27bd9a11a25ccfed62c8.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0014-72.png)
I’m guessing if I needed to create something where I respond to events from a cloud storage (imagine an inbox/ folder where files get uploaded to) I could use cloud run to respond to those events?
![burnzy avatar](https://secure.gravatar.com/avatar/1306e73598857c8d80ad440ae6299c1a.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0011-72.png)
Yeah exactly, you can use eventarc to trigger cloud run based on cloud storage events (or other events)