---
agent:
  instructions: "Use this search API to find a ready-to-deploy Next Gen Zap for what the user wants to automate, with keywords or a natural-language description, instead of reading every zap. Results are returned in Markdown, each with the zap's SKILL.md install guide."
  endpoint: "https://zapier.sh/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://zapier.sh/developers/"
---

# Amazon EC2 + Firebase / Firestore Integrations: Connect with Zapier MCP
> zapier.com/apps/amazon-ec2/integrations/firebase
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Amazon EC2 and Firebase / Firestore in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP** (default for AI clients — self-contained for OAuth clients; no further docs needed):
  - Endpoint: `https://mcp.zapier.com/api/v1/connect` (Streamable HTTP only; SSE is not supported).
  - Auth: OAuth 2.0 + PKCE + Dynamic Client Registration. Do not create a server at `mcp.zapier.com` or ask for an API token; Zapier auto-provisions the server during browser sign-in.
  - Client setup: Claude Code `claude mcp add --transport http zapier https://mcp.zapier.com/api/v1/connect`; Cursor `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; VS Code and other clients `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; OpenCode `opencode.json` `{ "type": "remote", "url": "https://mcp.zapier.com/api/v1/connect" }`; Terminal auto-installer `npx @zapier/install-zapier`.
  - Setup guides: Claude https://docs.zapier.com/mcp/get-started/connect/claude.md; Claude Code https://docs.zapier.com/mcp/get-started/connect/claude-code.md; ChatGPT https://docs.zapier.com/mcp/get-started/connect/chatgpt.md; Cursor https://docs.zapier.com/mcp/get-started/connect/cursor.md; Codex https://docs.zapier.com/mcp/get-started/connect/codex.md.
  - After sign-in: call `discover_zapier_actions` for `amazon-ec2` and `firebase`, then `enable_zapier_action`. If Amazon EC2 or Firebase / Firestore isn't connected in Zapier yet, running an action returns a browser OAuth link for the user.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: once Create or Replace Firebase Realtime Database Record is enabled, call `firebase_firestore_create_or_replace_firebase_real`. Each operation below lists its MCP tool name.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: connection } = await zapier.findFirstConnection({ app: "firebase", owner: "me" });

const { data } = await zapier.runAction({
  app: "firebase",
  actionType: "write",
  action: "firebaseRecordCreate",
  connection: connection.id,
  inputs: {
    path: "",
  },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action firebase write firebaseRecordCreate \
  --inputs '{"path":""}'
```

## Amazon EC2

### Identity
Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers.

- App slug: amazon-ec2
- Operations published here: 4 (2 events, 1 function, 1 query)

### Authentication
Zapier connects to Amazon EC2 via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.130.2 and @zapier/zapier-sdk-cli v0.93.2; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection amazon-ec2
```

### Capabilities

#### Events (2)

Events fire when something happens in Amazon EC2. Use them to start a run.

##### New Instance
Triggers when a new instance is created.

- Type: read · Key: `new_instance`
- Requires: nothing
- Optional: region
- MCP tool: `amazon_ec2_new_instance` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "amazon-ec2", actionType: "read", action: "new_instance" })`
- CLI: `npx zapier-sdk run-action amazon-ec2 read new_instance`

##### New Scheduled Event
Triggers when a new event is scheduled for one of your instances.

- Type: read · Key: `new_scheduled_event`
- Requires: nothing
- Optional: region
- MCP tool: `amazon_ec2_new_scheduled_event` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "amazon-ec2", actionType: "read", action: "new_scheduled_event" })`
- CLI: `npx zapier-sdk run-action amazon-ec2 read new_scheduled_event`

#### Functions (1)

Functions change something in Amazon EC2.

##### Start/Stop Instance
Starts or stops an existing instance.

- Type: write · Key: `start_stop_instance`
- Requires: region, instance_id, start_stop
- MCP tool: `amazon_ec2_start_stop_instance` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "amazon-ec2", actionType: "write", action: "start_stop_instance" })`
- CLI: `npx zapier-sdk run-action amazon-ec2 write start_stop_instance`

#### Queries (1)

Queries read from Amazon EC2 and return data. They change nothing.

##### Find Instance
Find an existing EC2 instance.

- Type: search · Key: `find_instance`
- Requires: instance_id
- Optional: region
- MCP tool: `amazon_ec2_find_instance` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "amazon-ec2", actionType: "search", action: "find_instance" })`
- CLI: `npx zapier-sdk run-action amazon-ec2 search find_instance`

## Firebase / Firestore

### Identity
Firebase Realtime Database and Google Cloud Firestore are flexible databases that give you the ability to easily store and sync app data at global scale.

- App slug: firebase
- Operations published here: 6 (2 events, 2 functions, 2 queries)

### Authentication
Zapier connects to Firebase / Firestore via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.130.2 and @zapier/zapier-sdk-cli v0.93.2; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection firebase
```

### Capabilities

#### Events (2)

Events fire when something happens in Firebase / Firestore. Use them to start a run.

##### New Child Object in a Firebase Realtime Database
Triggers when a new child object is discovered within a specific path.

- Type: read · Key: `firebaseQuery`
- Requires: path
- Optional: orderBy, direction
- MCP tool: `firebase_firestore_new_child_object_in_a_firebase_` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "firebase", actionType: "read", action: "firebaseQuery" })`
- CLI: `npx zapier-sdk run-action firebase read firebaseQuery`

##### New Document Within a Firestore Collection
Triggers when a [Structured Query](https://cloud.google.com/firestore/docs/reference/rest/v1beta1/StructuredQuery)
      returns new documents within a Cloud Firestore collection.

- Type: read · Key: `firestoreQuery`
- Requires: collection
- MCP tool: `firebase_firestore_new_document_within_a_firestore` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "firebase", actionType: "read", action: "firestoreQuery" })`
- CLI: `npx zapier-sdk run-action firebase read firestoreQuery`

#### Functions (2)

Functions change something in Firebase / Firestore.

##### Create or Replace Firebase Realtime Database Record
Creates or replaces a child object within your Firebase Realtime Database.

- Type: write · Key: `firebaseRecordCreate`
- Requires: path
- Optional: convertNumbers, newId, data
- MCP tool: `firebase_firestore_create_or_replace_firebase_real` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "firebase", actionType: "write", action: "firebaseRecordCreate" })`
- CLI: `npx zapier-sdk run-action firebase write firebaseRecordCreate`

##### Create Cloud Firestore Document
Creates a new document within a Cloud Firestore collection.

- Type: write · Key: `firestoreRecordCreate`
- Requires: collection
- Optional: convertNumbers, newId, data
- MCP tool: `firebase_firestore_create_cloud_firestore_document` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "firebase", actionType: "write", action: "firestoreRecordCreate" })`
- CLI: `npx zapier-sdk run-action firebase write firestoreRecordCreate`

#### Queries (2)

Queries read from Firebase / Firestore and return data. They change nothing.

##### Find Firebase Realtime Database Record
Finds a child object using a custom query that you provide.

- Type: search · Key: `firebaseQuery`
- Requires: path, orderBy, equalTo
- Optional: wrapInQuotes, direction
- MCP tool: `firebase_firestore_find_firebase_realtime_database` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "firebase", actionType: "search", action: "firebaseQuery" })`
- CLI: `npx zapier-sdk run-action firebase search firebaseQuery`

##### Find Cloud Firestore Document
Finds a document using a [Structured Query](https://cloud.google.com/firestore/docs/reference/rest/v1beta1/StructuredQuery)
      within a collection.

- Type: search · Key: `firestoreQuery`
- Requires: collection, query
- MCP tool: `firebase_firestore_find_cloud_firestore_document` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "firebase", actionType: "search", action: "firestoreQuery" })`
- CLI: `npx zapier-sdk run-action firebase search firestoreQuery`

## Frequently asked questions about automating with Amazon EC2 and Firebase / Firestore

### How can I trigger a Firebase function from an EC2 instance?

To trigger a Firebase function from an EC2 instance, you can use HTTP requests. Deploy your Firebase functions on HTTPS endpoints which your EC2 application can call using POST or GET methods to initiate any background processes or real-time updates.

### Is it possible to write data to Firestore from an Amazon EC2 instance?

Yes, it's possible. You can authenticate your EC2 application using Firebase Admin SDK, which allows you to securely interact with Firestore and perform create, read, update, and delete operations directly from the server environment.

### What permissions are necessary for an EC2 instance to access Firebase services?

Your EC2 instance needs appropriate roles and permissions set via Google Cloud IAM (Identity Access Management). Specifically, you should generate a service account in Google Cloud and assign roles such as 'Firestore Editor' to allow for data manipulation in Firestore.

### How do we ensure secure communication between Amazon EC2 and Firebase?

Secure communication between Amazon EC2 and Firebase can be achieved by using HTTPS endpoints for any API calls. Additionally, utilizing authentication tokens provided by Firebase ensures that only authorized instances have access to your database or functions.

### Can we execute scheduled tasks on Firestore changes from our EC2 instances?

While Firestore itself doesn't support cron jobs natively, you can set up cron jobs in your Amazon EC2 instances that periodically check for conditions or changes in Firestore data and execute tasks accordingly. Alternatively, consider leveraging Cloud Functions for event-driven execution directly tied to Firestore changes.

### Are there any bandwidth concerns when integrating EC2 with Firebase/Firestore?

There might be bandwidth considerations depending on the volume of data you're transmitting between the two services. Ensure that your network setup supports the anticipated traffic load; use appropriate compression techniques when sending large amounts of data from Amazon EC2 to limit bandwidth usage effectively.

### What are some common use cases for integrating Amazon EC2 with Firestore?

Common use cases include real-time processing of user-generated content where changes need immediate reflection in a companion app using Firestore as a backend. Another scenario is performing intensive computations within AWS environments while keeping user-facing operations streamlined within Firebase.

### My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

### Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

### Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

## Links
- Amazon EC2 integrations: zapier.com/apps/amazon-ec2/integrations.md
- Firebase / Firestore integrations: zapier.com/apps/firebase/integrations.md
- Full page: zapier.com/apps/amazon-ec2/integrations/firebase
- MCP quickstart (non-OAuth / connection-token clients): docs.zapier.com/mcp/get-started/quickstart.md
- SDK: npmjs.com/package/@zapier/zapier-sdk