> ## 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](https://docs.envzero.com/guides/integrations/logs-forwarding.md#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](https://docs.envzero.com/guides/admin-guide/self-hosted-kubernetes-agent/overview.md#editing-an-agent-pool) to change the logs configuration.

## AWS - Hosting Deployment Logs in DynamoDB

**1. 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.

![Edit Agent modal showing AWS log configuration fields](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)

**2. 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.

**3. 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.

## Next steps

* [Install a Kubernetes agent](https://docs.envzero.com/guides/admin-guide/self-hosted-kubernetes-agent/self-hosted-kubernetes-agent.md) if the pool has no running agent yet
* [Check agent health](https://docs.envzero.com/guides/admin-guide/self-hosted-kubernetes-agent/self-hosted-agents-monitoring.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.