> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phidata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Run on AWS

Let's run the **LLM OS** in production on AWS.

<Snippet file="aws-setup.mdx" />

<Snippet file="update-prd-secrets.mdx" />

<Snippet file="create-aws-resources.mdx" />

## LLM OS App

**Open the LoadBalancer DNS** provided when creating the Streamlit App

* Enter the `APP_PASSWORD` from the `prd_app_secrets.yml` file (default: `admin`)
* Enter a username.
* Add blog post to knowledge: [https://blog.samaltman.com/what-i-wish-someone-had-told-me](https://blog.samaltman.com/what-i-wish-someone-had-told-me) and ask: what did sam altman wish he knew?
* Test Web search: Whats happening in france?
* Test Calculator: What is 10!
* Test Finance: What is the price of AAPL?
* Test Finance: Write a comparison between nvidia and amd, use all finance tools available and summarize the key points
* Test Research: Write a report on Hashicorp IBM acquisition

## LLM OS API

<Steps>
  <Step title="Enable FastApi">
    Update the `workspace/settings.py` file and set `prd_api_enabled=True`

    ```python workspace/settings.py theme={null}
    ...
    ws_settings = WorkspaceSettings(
        ...
        # Uncomment the following line
        prd_api_enabled=True,
    ...
    ```
  </Step>

  <Step title="Create FastApi resources">
    <CodeGroup>
      ```bash terminal theme={null}
      phi ws up --env prd --infra aws --group api
      ```

      ```bash shorthand theme={null}
      phi ws up dev:docker:api
      ```
    </CodeGroup>

    **Press Enter** to confirm
  </Step>

  <Step title="View API Endpoints">
    * **Open the LoadBalancer DNS** + the `/docs` endpoint to view the API Endpoints.
    * Test the `v1/assitants/chat` endpoint with

    ```json theme={null}
    {
      "message": "Whats 10!",
      "agent": "LLM_OS"
    }
    ```

    * Integrate with your front-end or product.
  </Step>
</Steps>

<Snippet file="ai-app-update-production.mdx" />

<Snippet file="ai-app-delete-aws-resources.mdx" />

## Next

Congratulations on running your LLM OS on AWS. Next Steps:

* Read how to [update workspace settings](/templates/how-to/workspace-settings)
* Read how to [create a git repository for your workspace](/templates/how-to/git-repo)
* Read how to [manage the production application](/templates/how-to/production-app)
* Read how to [format and validate your code](/templates/how-to/format-and-validate)
* Read how to [add python libraries](/templates/how-to/install)
* Read how to [add a custom domain and HTTPS](/templates/how-to/domain-https)
* Read how to [implement CI/CD](/templates/how-to/ci-cd)
* Chat with us on [discord](https://discord.gg/4MtYHHrgA8)
