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

# Hosting Deployment Logs

> Store env zero deployment logs in your own AWS DynamoDB table using the env zero log table Terraform module with IAM role ARN configuration.

By default, deployment logs are stored in env zero.
You can store the logs in your own AWS account instead.

Go to **Organization Settings** > **Agents** and click **Edit** on the agent pool to change the logs configuration.

## AWS - Hosting Deployment Logs in DynamoDB

<Steps>
  <Step title="Deploy the log table">
    Deploy the [env zero log table terraform module](https://github.com/env0/k8s-modules/tree/main/log-storage/aws/dynamodb) on your AWS account. This module creates the DynamoDB table and the IAM role that env zero assumes when reading and writing logs.

    For the module variables, use the **Agent ID** and **External ID** shown in the Edit Agent modal.

    <Frame>
      <img src="https://mintcdn.com/envzero-b61043c8/G6uQW-C5k8CwAvji/images/guides/admin-guide/self-hosted-kubernetes-agent/edit-agent-logs-config.png?fit=max&auto=format&n=G6uQW-C5k8CwAvji&q=85&s=2ab5cb58a2343c8b351a57b04190d3c0" alt="Edit Agent modal showing AWS log configuration fields" width="1734" height="969" data-path="images/guides/admin-guide/self-hosted-kubernetes-agent/edit-agent-logs-config.png" />
    </Frame>
  </Step>

  <Step title="Configure the agent pool">
    In the logs configuration section, enter:

    * **AWS Account ID** - The account where you deployed the log table.
    * **Region** - The AWS region of the DynamoDB table.
  </Step>

  <Step title="Verify">
    Run a deployment and confirm that logs appear in your DynamoDB table.

    <Warning>
      Changes to log configuration may take up to 60 minutes to take effect. During this period, logs may still be written to the previous location.
    </Warning>
  </Step>
</Steps>

## Next steps

* [Self-Hosted Agents Overview](/guides/admin-guide/self-hosted-kubernetes-agent/overview) - Edit agent pool settings including log configuration.
* [Self-Hosted Kubernetes Agent](/guides/admin-guide/self-hosted-kubernetes-agent/self-hosted-kubernetes-agent) - Install and manage the Kubernetes agent.
* [Monitoring Self-Hosted Agents](/guides/admin-guide/self-hosted-kubernetes-agent/self-hosted-agents-monitoring) - Check agent health and operational status.
