> For the complete documentation index, see [llms.txt](https://guide.sphericaldefence.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.sphericaldefence.com/guide/quickstart/cloudformation.md).

# CloudFormation

The simplest installation route is through **CloudFormation**, which enables you to get up and running with (almost) a single click. The following link will set up a Spherical stack, including an externally facing **AWS API Gateway** for data ingestion.&#x20;

[Launch a CloudFormation Spherical Stack](https://us-west-2.console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/create/review?templateURL=https://spherical-integrations-virgin.s3.amazonaws.com/SphericalDefenceIntegrationHarness.cloudformation.yaml\&stackName=SphericalDefence)

You can choose to run the system in front of an underlying service as a **reverse proxy**, or alternatively in offline mode without any redirection of requests to another service. Offline mode is usually a much better way of getting started. Additional benefits of using **CloudFormation** as your deployment option enables easy integration with a number of services.

![The stack that is created on your AWS infrastructure looks like this. ](/files/-LuIRrOisdn1kWm7X7Nv)

Spherical integrates with services in two ways, **outbound** and **inbound.** Inbound integrations help get data into a Spherical instance. Outbound integrations help get events out of a Spherical instance for your security team to view. See how to integrate Spherical into your workflow with the following link:

{% content-ref url="/pages/-LuDOkA1CAQq-zzNHAGU" %}
[Integrations](/guide/integrations.md)
{% endcontent-ref %}

#### API Gateway

The API Gateway is the component that allows you to process API traffic coming in from the outside world. Spherical can be configured with most API Gateways that enable *proxy integrations.* This means that the API Gateway will pass forward the entirety of every request that it receives.&#x20;

#### Proxy Lambda

This component is used to enable Spherical to get a **copy** of all traffic moving from your API Gateway, and your backend API service. It is very **lightweight**, and merely loads the HTTP/S request into memory, before sending a copy to the **Broker Lambda** and the original onto the underlying service.

#### Broker Lambda

This component handles the **outbound integrations** to alerting services like Splunk. It either integrates with the Proxy Lambda directly (when using the AWS API Gateway), or alternatively with the Gateway itself (when using Kong or Apigee). This Lambda forwards API requests to the Spherical instance, and does something with the response.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://guide.sphericaldefence.com/guide/quickstart/cloudformation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
