---
title: Provision the Datadog Agent with Terraform
description: >-
  Provision the Datadog Agent for Database Monitoring with Terraform across
  managed and self-hosted databases.
breadcrumbs: Docs > Database Monitoring > Provision the Datadog Agent with Terraform
---

# Provision the Datadog Agent with Terraform

Use Terraform to provision the Datadog Agent for Database Monitoring (DBM) on AWS. The Terraform examples are available in [`DataDog/dd-database-monitoring-example`](https://github.com/DataDog/dd-database-monitoring-example) and cover the Agent side of the setup — each example deploys the Agent and wires it to your database. They do not provision the database itself or configure database-side parameters.

Select your database to get started:

- [Postgres](https://docs.datadoghq.com/database_monitoring/setup_agent_terraform/postgres/)
